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

how many character send in one sms forget 160limit and think about gateway allowed

2 Answers   Wipro,


Can we use a static function with a non-static variable?

1 Answers  


How to publish website

1 Answers   Syntel,


In try catch blocks one is normal catch block and another is sqlcatchexception block

3 Answers   Microsoft,


How can we prevent browser from caching an aspx page?

1 Answers  


Anyone has Latest Microsoft ASP.NET Certification Dumps for these?

1 Answers  


What is the difference between c# and .net?

1 Answers  


Which method is used to enforce garbage collection in .net?

1 Answers  


What does setting a control's EnableViewState property to false accomplish?

1 Answers  


What is difference between viewstate and session state in javascript?

1 Answers  


How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.

1 Answers   Siebel,


can we transfer data from one page to another page using viewstate if so how?if not y?

1 Answers   Patni,


Categories