IS IT POSSIBLE TO SET TIME FOR COOKIES?HOW IT IS POSSIBLE.



IS IT POSSIBLE TO SET TIME FOR COOKIES?HOW IT IS POSSIBLE...

Answer / anwar sadat.a

Yes,
Request.Cookies["UserCoook"].Expires = DateTime.Now;

Likewise we can able to set time fro cookies

Is This Answer Correct ?    12 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Less than one page, how many windows will you be able to maintain?

0 Answers   Atos Origin,


Explain the main function of razor in asp.net? : asp.net mvc

0 Answers  


When was asp.net released?

0 Answers  


Which method has beenintroduced in asp.net 4.0 to redirect a page permanently?

0 Answers  


Explain the various authentication mechanisms in asp.net.

0 Answers  






What are the advantages and disadvantages of Using Cookies?

0 Answers   MCN Solutions,


Elaborate differentiation between Cache and Application?

0 Answers   QuestPond,


If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

0 Answers  


Who creates jsessionid?

0 Answers  


version information is mentioned in which file

3 Answers   AG Technologies,


Could u send me the answer for this question as soon as possible. Im using 'System.net.mail.mailmessage' namespace for sending a mail from my application. What should I mention in 'system.net.mail.mailmessage.to' property and What should I mention in 'system.net.mail.mailmessage.from' property.

1 Answers  


What is role-based security in asp.net?

0 Answers  


Categories