How do you create a permanent cookie?
Submitted by: AdministratorSetting 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
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
Top ASP.NET 2.0 Questions
☺ | Web service support |
☺ | What types of data validation events are commonly seen in the client-side form validation? |
☺ | In A Page I have gridview with Options of select and delete using hyperlink when i am selecting any one of then it has to open another page how can it? |
☺ | How to rename a table using sql queries? |
☺ | Can a .NET web application consume Java web service? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |