>>> Matthias Brantner <[EMAIL PROTECTED]> 10-Apr-00 9:22:13 PM >>>
>> To find out the session id of the session you just created, call
>> session.getId() instead.
>But I requested a Session before. And sometimes it works, sometimes
>not!
That's because the id may still be present in the request even if it
is not associated with a session.
Think about it: you invalidate a session but that doesn't necessarily
stop the browser returning the cookie (or a user clicking on a session
encoded URL).
So the request has the session id present but it is considered
invalid.
If you create a session the id that goes back to the browser will
(probably) be different and therefore the next requested id will be
valid.
Nic Ferrier
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html