How do you create a permanent cookie?
Answer Posted / naseem malik
If You want to Create a parament Cookies. you Permanent cookies are available until a specified expiration date, and are stored on the hard disk.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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is meant by web application?
What are standard controls?
Explain about asp.net state management?
What is latest version of asp.net mvc? : Asp.Net MVC
What is runat?
What is the life cycle of an asp.net page?
Explain the main function of razor in asp.net? : asp.net mvc
Explain the boxing and unboxing concept in .net?
What are session state modes?
Explain about Application and Session Events ?
What is Cookies Less Session?
How do active server pages work?
How to implement role based security in asp.net mvc? : Asp.Net MVC
Can the dictionary object be created in client?s scope ?
What are the memory-mapped files?