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
Can the dictionary object be created in client?s scope ?
What does asp stand for in asp.net?
When should I use server transfer and response redirect?
What are the different types of Caching techniques in ASP.NET?
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know
Elaborate differentiation between Cache and Application?
What is state management in .net?
List some of the important session state modes of asp.net.
Where can I get the details on migration of existing projects using various technologies to asp.net?
Explain asp.net page life cycle?
What is clr? Difference between clr & cts?
Do cookies store passwords?
Can we create a multiple user simultaneously ?
What is difference between cache and session?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.