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


Please Help Members By Posting Answers For Below Questions

What is the difference between a multi-layer and multi-tier applications?

567


Explain Life cycle of ASP.NET page when a request is made.

747


What are session state modes? List some of the important session state modes of asp.net.

527


Explain the difference between server control and html control.

472


Define page fragment caching?

515






What are the session variables?

510


What is form method?

491


Define the term Web Garden?

548


Explain the concept of View Model in MVC?

589


What is mvc in asp.net interview question? : Asp.Net MVC

487


What is rending process in ASP.NET?

611


How can we access static variable?

643


Explain how asp.net page works?

535


Can you dynamically assign a Master Page?

582


What is application session?

500