Cookie Demonstration

Writing a single cookie called COOKIETEST1 with a value of 1 and an expiration one day in the future using the code below.

Response.Buffer = true
...
Response.Cookies("COOKIETEST1") = 1
Response.Cookies("COOKIETEST1").Expires = date + 1

View Cookie Value


Cookie Samples Home