JavaScript and ASP.NET - Cookies with Key / Value Pairs
<p>This question mixes client-side scripting with server-side parsing.</p>

<p>In some cases, I'm writing a cookie to the user's browser using the <code>document.cookie</code> property. In other cases, I'm writing the same cookie to the user's browser through the ASP.NET <code>Response</code> object. </p>

<p>When I'm writing the <code>HttpCookie</code> on the server-side, I am using the Values collection (<a href="http://msdn.microsoft.com/en-US/library/system.web.httpcookie.values%28v=VS.80%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-US/library/system.web.httpcookie.values%28v=VS.80%29.aspx</a>) to store key/value pairs in the cookie. I would also like to be able to write key-value pairs to the cookie through JavaScript.</p>

<p>How do I create cookies with Key/Value pairs via JavaScript that ASP.NET can parse?</p>

<p>Thank you!</p>
