How do you create a permanent cookie?

Submitted by: Administrator
Setting a permanent cookie is similar to Session cookie, except give the cookie an expiration date too. It is very common that you don't specify any arbitrary expiration date, but instead expire the cookie relative to the current date, using the DateAdd() function.

Response.Cookies("Name") = "myCookie"
Response.Cookies("Name").Expires = DateAdd("m", 1, Now())

by expiration date in cookie tag...
Submitted by: Administrator

Read Online ASP.NET 2.0 Job Interview Questions And Answers