How to create a permanent cookie?



How to create a permanent cookie?..

Answer / 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

More ASP.NET Interview Questions

What is the difference between asp.net and mvc?

0 Answers  


What are the Types of objects in ASP

0 Answers   Microsoft,


Why does a user need nothing more than a Web browser to view ASP.NET pages?

1 Answers  


What is server objects in asp.net?

5 Answers  


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

0 Answers  


how to write html code with ssl

0 Answers   DCI,


How do I send e-mail from an ASP.NET application ?

1 Answers  


I am using a range validator and want to use dd mm yyyy format for accepting dates. I get a fairly generic "can't do that" type exception when I use this format for setting the minValue or maxValue properties for the range validator. How can I force it to accept my format?

1 Answers   FutureTech,


What are the different types of validation controls in asp.net?

0 Answers  


What is asp.net futures?

0 Answers  


How to Separate background image and front image from original picture....

0 Answers   Sans Pareil IT Services,


Differentiate between structure and class.

0 Answers  


Categories