Killing session cookies

Hi everyone!

I've got a terrible problem with session cookies.

When you invalidate a session, it will not delete the cookie from the client browser.

I tried to setMaxAge(0) to the session cookies but it doesn't work: the session rewrite it with setMaxAge(-1).

How can I delete programmaticaly the session cookie when I invalidet a session, before the browser closing?

Thanks all!

Claudio

[439 byte] By [signorinicl] at [2007-9-26 1:18:07]
# 1
Claudio,Try session.invalidate() Let me know if that works for you.Rick
rsal at 2007-6-29 0:48:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I've already tried (see when I wrote "invalidate"): it doesn't work!!!!!!!!!!!
signorinicl at 2007-6-29 0:48:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Hi,I don't think you can delete session cookies directly from the client. You'll need to set the cookie value to an empty string, and the date to "Thu, 01-Jan-70 00:00:01 GMT". It will be deleted from the client completely from the moment the browser is closed.
leukbr at 2007-6-29 0:48:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Gasp! I would like to delete it before I close the browser...Any other solutions?Please! Help me!!!
signorinicl at 2007-6-29 0:48:43 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...