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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Kill Cookie

 



pu_nk
journeyman

Feb 23, 2001, 11:36 PM

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

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



 
 


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

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