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.) and nowhere does it
> tell how to do this. There is a small mention of changing the
> expiration to < 0, but apparently I am doing it wrong (possible
> confusing point is the use of an 'expires' value in the cookie
> itself, seperate, I think, from the 'expires' attribute on the
> cookie?)

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.

Reply via email to