Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

expiring a cookie 1

Status
Not open for further replies.

nnmmss72

Programmer
May 14, 2006
110
IR
how can i cause a cookie expires immidiately?
Response.Cookies["ProdModel"].Expires=??????
 
You should set this when you first create the cookie - there are additional parameters that you can pass in to set this timeout or you can use the Expires property.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
i have created it and used it , but i don't know how i can expire that cookie


is this right?
Response.Cookies["ProdModel"].Expires=Now

----there are additional parameters that you can pass in to set this timeout ----

what are those parameteres?
 
i have created it and used it , but i don't know how i can expire that cookie
If you have any problems using any class, control or object read the help files on MSDN first as they almost always provide an example:



____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top