How do you create a permanent cookie?

Answer Posted / laki

we can create a permanent cookies giving the expiry date .
So Set the 'Expires' property any value greater than
DataTime.MinValue with respect to the current datetime. If
u want the cookie which never expires set its Expires
property equal to DateTime.maxValue.

Is This Answer Correct ?    7 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a session http?

521


What is & in a url?

533


How do you implement sql caching in asp.net?

567


Why web api is better than wcf?

561


What is css and what is it used for?

559






Explain the flow of processing of the request? : asp.net mvc

537


Explain the updatepanel?

586


Define xmlreader class.

579


Explain how can you debug your .net application?

541


Difference between using directive vs using statement?

510


What is the difference between page directive include and action tag include?

530


What is an asp.net validator? And, mention its types.

592


Any disadvantages in Dataset and in reflection ?

2829


Explain different authentication modes in asp.net?

552


What is data caching?

562