CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
Kill Cookie



Feb 23, 2001, 11:36 PM

Post #1 of 1 (417 views)
Kill Cookie Can't Post

I am trying to have a "logout feature on a program and it sometimes works fine and sometimes does not.

I set a cookie (not with like so.. (example)

print "Set-Cookie: username=$username\|\|$pass; expires=\"Wed 2 Jan 2001 23:59:59 GMT\n";

and now i want them to logout.. so i delete the cookies just by editing the expire date to 1987 for example.

This does work sometimes but other times it does not delete the cookie. (unless i do it manually from my PC)

The idea that i have in my head was that this would not delete because i have tested the program so many times that i have more than 1 cookie on my computer and for testing purposes i have set more cookies..
Should a cookie automatically overwrite itself it the same cookie is set with a different value?

Hope you can help,


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives