I found the answer in MSDN (for some reason i can't find the link but here is something that i copied onto notepad):
In an earlier version of ASP, create a new ASP page, and then add the following code:
Response.Cookies("MyCookie") = "some value and other characters such as #, $, and so on"
Response.Cookies("MyCookie").Path = "/"
<form id="Form1" method="post" action="CookieTest.aspx">
<input type="submit" value="Click Me" ID="Submit1" NAME="Submit1">
Create a new .aspx page named CookieTest.aspx in the same project or application.
Add the following code to the .aspx page:
<script runat="server" language="vb
Response.Write("Hello from CookieTest.aspx ...<br>")
Response.Write(Request.Cookies("MyCookie").Value() + "<br>")
Run the ASP page first. Take note of the output.
Click Submit1 to browse to CookieTest.aspx. Notice that the output is encoded in UrlEncode format. This occurs because the ASP code from the previous page sets the cookie's data.
To decode the data that is retrieved from the cookie, use the following syntax: