Not sure if any of you have run into this. Here's what's happening:
At login time, within a servlet, I create a session object and set the value
of the userName to the current user and i also set some other values.
At logout time, the session is invalidated from the servlet as below:
public void logout( HttpServletRequest req )
{
HttpSession httpSession = req.getSession(true);
httpSession.invalidate();
}
At the next login, the session is created again and all the values,
including the user name are set as before. However, this time, when i try to
get the value of userName from the servlet it's empty. Moreover, these
values are correct when accessed from a JSP page.
Also, I am unable to retrieve the old session using the request.getSession()
call. At the next login I get a new session returned to me. I heard that the
browser caches the session objects until they are shutdown, after each
shutdown the first time everything works as expected. It's only after I
logout, invalidate the session object then re-login does the problem arise.
Using JSP/Applets/Servlets/sun's Java Web Server.
Thanks for any insight.
Neelesh
========================
Neelesh Kamkolkar
Software Developer
WRQ, Inc.
___________________________________________________________________________
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