Hi
I need to delete directly a session cookie before begining some processing.
I need to clean directly the cookie from the cookie table for after
processing
hans
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 problem is that I want to
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.)
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.
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
it by keeping the existing (session) cookie which was assigned when the user first
logged in, but marking the user as logged out on the server side.
i.e. associate a user cookie with session data stored in a database, and instead of
deleting the cookie on the client side, just set something on the
server
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