title: How to get key Value from cookies which was set in javascript, asp.net mvc3
body: <p>I had set a cookie in javascript some thing like this</p>
  
  <pre><code>   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);
  </code></pre>
  
  <p>And i controller i am getting values in my cookie  like this</p>
  
  <pre><code> HttpContext.Request.Cookies["slmgusercredentials"].Values = {slmgusername%253Dswetha.p%2526slmguserpassword%253D12345678}
  </code></pre>
  
  <p>when i am trying to get the username from this some thing like </p>
  
  <pre><code> UserName = HttpContext.Request.Cookies["slmgusercredentials"].Values["slmgusername"].
  </code></pre>
  
  <p>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...</p>