How do you create a permanent cookie?
Answer Posted / bhim bharti
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
How long does an http session last?
What is the difference between login controls and forms authentication?
Explain the difference between dataset and datareader.
What are the different web pages?
What do you understand by aggregate dependency?
Which method is used to force all the validation controls to run?
Explain the difference between debug.write and trace.write?
How should I destroy my objects in asp.net?
What are web beacons used for?
Is asp.net and .net same?
Differentiate strong typing and weak typing
Where is cookie used in asp.net?
Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?
How can you register a custom server control to a web page?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc