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

hi im shailendra singh my question is how we deploye the data base

3 Answers   HCL,


there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?

1 Answers  


Define application state variable and session state variable?

0 Answers   UGC Corporation,


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?

0 Answers  


How many types of cookies are available in asp?

0 Answers  






What ASP.NET object encapsulates the state of the client and the browser? a) The Session object b) The Application object c) The Response object d) The Request object e) The Server object

7 Answers   Bunzl Vending, Syntax Softtech,


How can we prepairing Interview

0 Answers   ITcom, TCS,


How many view state can be hold by a aspx page ?

3 Answers   Intellevate,


What are the uses of list view control in Asp.net?

0 Answers   HCL,


About session modes

3 Answers   Wipro,


Difference between overriding and overloading?

0 Answers  


Explain Authentication mechanism in dotnet

0 Answers   BirlaSoft,


Categories