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

Suppose i create one application in vs 2008 and it is running in the latest version of IE,will it run in netscape and other browsers with low version?

2 Answers   Wipro,


I have one application, one user purchase some products in my application? and another person came he is also purchase some products?how can we identify which user purchase which items? my answer is by using session id? but i dont know how? can u give me programming for that?

1 Answers  


How many types of controls are there in asp.net?

0 Answers  


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

0 Answers  


When we are requesting a new URL through Response.Redirect() the new page wil open on the new browser window or it wil open in the same window? If we use Server.Transfer() what wil happen?

1 Answers  






Explain the difference between or and orelse?

0 Answers  


how many session modes are available?some brief explnation

1 Answers  


What is the Global.asax used for?

7 Answers   Siebel Systems,


how to send mail in asp.net

2 Answers  


How can we use Web API with ASP.NET Web Form?

0 Answers  


Hi, I am working in a small software company in asp.net platform. I need to know how and what are all the task in asp.net will be assigned for the developers in mnc companies. Thanks in advance.

1 Answers  


What are the validation controls available in ASP.NET?

0 Answers  


Categories