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 is the difference between a multi-layer and multi-tier applications?
Explain Life cycle of ASP.NET page when a request is made.
What are session state modes? List some of the important session state modes of asp.net.
Explain the difference between server control and html control.
Define page fragment caching?
What are the session variables?
What is form method?
Define the term Web Garden?
Explain the concept of View Model in MVC?
What is mvc in asp.net interview question? : Asp.Net MVC
What is rending process in ASP.NET?
How can we access static variable?
Explain how asp.net page works?
Can you dynamically assign a Master Page?
What is application session?