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


Please Help Members By Posting Answers For Below Questions

How do I open an ashx file in windows 7?

568


Explain Session state management options in ASP.NET.

586


Define static function?

564


What threading model used in asp and asp.net?

566


What is the difference between adding reference in solution explorer and adding references by using ?

570






Define xmlvalidatingreader class.

561


What is state management techniques in asp.net?

526


Explain the role of global.asax?

543


What is sta?

552


How u refer webservices?

1489


Where sessions are stored in asp.net?

532


What is a server farm in iis?

535


What is inheritance and an how it be used, example with an example?

582


What is the difference between trace and debug in asp.net?

610


What is webresource axd?

460