How do you create a permanent cookie?
Answer Posted / rahul garad
You can set the permanent cookied by setting the expiry
date to the MaxDate
<%
Response.Cookies("username") = "you"
Response.Cookies("username").Expires = Date.MaxValue
%>
| Is This Answer Correct ? | 70 Yes | 2 No |
Post New Answer View All Answers
What are the major built-in objects in ASP.NET?
What is enableviewstate in asp net?
Whats the difference between abstract factory pattern and factory pattern?
Explain the concept of MVC Scaffolding?
What does aspcompat="true" mean?
Define machine.config in .net?
Describe state management in asp.net?
What is semantic gap?
To add a hyperlink column to the DataGrid which tag is used ?
What describes a query?
What is web router?
What are cookies in your browser?
What are the components of ado.net?
What is virtual directory in asp.net?
Is viewstate secure?