I had set a cookie in javascript some thing like this
function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie = c_name + "=" + c_value;
}
var loginval = slmgusername=swetha.p + slmguserpassword = 12345678;
setCookie("slmgusercredentails", loginval, 100);
And i controller i am getting values in my cookie like this
HttpContext.Request.Cookies["slmgusercredentials"].Values = {slmgusername%253Dswetha.p%2526slmguserpassword%253D12345678}
when i am trying to get the username from this some thing like
UserName = HttpContext.Request.Cookies["slmgusercredentials"].Values["slmgusername"].
I cant able to get the UserName. As i think so the values are in javscript coding format. How to get the username... can any one help me to find the solution...