
pu_nk
journeyman
Feb 23, 2001, 11:36 PM
Post #1 of 1
(98 views)
|
Hello, 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 CGI.pm) 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, Drew
|