-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

> > I log in into a session, work some time. This works good. Everybody
> > get's his cookie
> > with the sessionId and is happy. Now I klick on the logout-button. I
> > then immediatly invalidate
> > the session, the cookie should be deleted, but it isn't. The next time
> > the client accesses the servlet
> > he get's an error-message, that his sessionId is invalid (this message
> > of course is generated by my servlet).
> >
> > Is there any solution???
>
> i dont c any problems with leaving a cookie on the client ( if that is
> indeed what happens -- dont have time to verify it =)). as long as the
> server side logic which maintains the sessions recognizes that the session
> is invalid and takes appropriate action to the collection of sessions it
> maintains ( like deleting the invalid session or something).
>
> the behaviour appears to be correct -- the user gets an error message
> because the servlet engine recognizes that the session is invalid.

Yes, but when I klick a button named 'logout' I am very unhappy when I get an

error-message when I access the servlet next time. The error message is
provided
for the case that the session has timed-out. This is not the case here. The
session has
not timed out, the user has logged out.




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to