Re: Deleting a cookie

2001-11-27 Thread Mohit Agarwal
On Tue, 27 Nov 2001, Jon Robison wrote: My only problem is that I want to provide the users with a logout button which will delete the cookie from thier browser, yet I cannot find how!. I have reviewed every module on my system with 'Cookie' in the name (Apache::Cookie, CGI::Cookie, etc.)

Re: Deleting a cookie

2001-11-27 Thread Mithun Bhattacharya
Mohit Agarwal wrote: Never tried the negative value for expiration time, but setting it to a very small value, say 1s, works. I'm not sure, but setting the cookie value to null should also have the same effect. I believe setting the expiry date less than the current time should work.

Re: Deleting a cookie

2001-11-27 Thread Nick Tonkin
Expiring the cookie works well for me. Here's what I have: sub handler { [ ... ] if ($r-uri =~ /logout/) { if (my $cookie = destroy_cookie($r)) { return logout_screen($r); } else { return 500; } } [ ... ] } sub destroy_cookie

Re: Deleting a cookie

2001-11-27 Thread Mark Maunder
Jon Robison wrote: I have created a login system using the wonderful Ticket system from the Eagle book. I have modified TicketAccess so that after authentication, it reviews the arguments in the query string and does push_handler, the handler being chosen based on the args. My only

Re: Deleting a cookie

2001-11-27 Thread Hans Poo
El Mar 27 Nov 2001 10:21, Jon Robison escribió: I have created a login system using the wonderful Ticket system from the Eagle book. I have modified TicketAccess so that after authentication, it reviews the arguments in the query string and does push_handler, the handler being chosen based