I'd like to set a cookie with jquery and access it in server side code.
this is what I came up with so far:
in jquery:
$.cookie("MyKey", "MyData", { path: "/" })
in vb.net (serverside code):
If Request.Cookies("MyKey") IsNot Nothing Then
Dim mystring As String = Request.Cookies.Get("MyKey").Value
End if
but I it returns nothing. Is there a way to fix this?
Thanks in advance