How to create a permanent cookie?

Answer Posted / swetha

set expires property to Date.max value

i.e httpcookie.Expires= Date.maxvalue

Is This Answer Correct ?    26 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?

553


Differentiate between a hyperlink control and a linkbutton control.

556


Which property is used to identify the Page is Post Back in ASP.NET?

560


What is synchronous and Asynchronous post back ?

646


What is session authentication?

534






Explain how cookies work.

596


How can you handle exceptions in asp.net?

564


Explain the difference between response.redirect vs server.transfer

618


What is asp.net introduction?

526


Explain About duration in caching technique

621


What are session state modes in asp.net?

554


How you can manage the state of application at the server side in ASP.NET?

582


Can you set the session out time manually?

382


code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

1413


How do session tokens work?

517