I have a site which uses cookies. Here is a portion of my code:
Response.Cookies("mySite"
("id"
= 10
Response.Cookies("mySite"
("username"
= "someone"
Response.Cookies("mySite"
.Expires = DateAdd("y",1,Date)
However, when I close my browser and open it again the cookie doesn't exist!
I have also tried adding this line:
Response.Cookies("mySite"
.Domain = ".mysite.com"
When I do that, I have to close the browser and open it again before it recognises the cookie!
Am I missing something? Should I set the expiration date with a client-side script? If so, which language?
Thanks
Response.Cookies("mySite"
Response.Cookies("mySite"
Response.Cookies("mySite"
However, when I close my browser and open it again the cookie doesn't exist!
I have also tried adding this line:
Response.Cookies("mySite"
When I do that, I have to close the browser and open it again before it recognises the cookie!
Am I missing something? Should I set the expiration date with a client-side script? If so, which language?
Thanks