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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Destroy ASP.NET cookies-how? 2

Status
Not open for further replies.

puitar

Programmer
Apr 8, 2001
64
0
0
AU
Hello,

My application uses ASP.NET cookies
eg response.cookies("CartID").Value = 389

I need to be able to destroy this cookie so I can...

if Request.Cookies("CartID") Is Nothing then
'create a new cart
end if

Thanks
 
Hi,

Doesn't Response.Cookies.Remove("mycookie") clear it!

If not, try expiring the cookie at the time you want it removed.

Hope this helps,

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top