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


Please Help Members By Posting Answers For Below Questions

When maintaining session through sql server, what is the impact of read and write operation on session objects?

536


What is the difference between a default skin and a named skin?

599


What are the features of asp.net mvc?

529


What is server side routing?

511


Explain how cookies work.

600






Is oauth for authentication or authorization?

592


Differentiate between Server.Transfer and Response.Redirect with functionality? Why we can choose one over the other?

619


What is Partial PostBack in ASP.NET?

608


how to write html code with ssl

1529


What is aspect-oriented programming?

549


What are the difference between function and stored procedure in .net programming language?

262


What is a session http?

521


Why and where this web.config file is used?

598


What are the new navigation controls in asp.net 2.0?

538


What are the advantages of using session?

440