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:
<%@ Language="VBScript"%>
<%
Response.Cookies("MyCookie") = "some value and other characters such as #, $, and so on"
Response.Cookies("MyCookie").Path = "/"
Response.Write(Request.Cookies("MyCookie"))
%>
<body>
<form id="Form1" method="post" action="CookieTest.aspx">
<input type="submit" value="Click Me" ID="Submit1" NAME="Submit1">
</form>
</body>
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">
sub Page_Load()
Response.Write("Hello from CookieTest.aspx ...<br>")
Response.Write(Request.Cookies("MyCookie").Value() + "<br>")
end sub
</script>
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:
Response.Write(Server.UrlDecode(Request.Cookies("M yCookie").Value()))