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

Deleting a cookie 1

Status
Not open for further replies.

rdyoll

Technical User
Joined
Aug 11, 2003
Messages
39
Location
US
Hi, I'm setting cookies, and reading them just fine, but how do I delete a cookie. I'm setting the cookie via the print header(-cookie => $cookie); method. Do I just overwrite it, or what? I tried delete(cookie('name')), unlink(cookie('name')) and several others, but to no avail. I've read CGI.pm and all it has to offer about cookies, but, I really don't see anything about deleting them. Anyone?
 
IIRC if you set a negative expiry date it should do the trick.
 
...Thank you, I never looked at it that way...
Cheers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top