I wrote a servlet that stores some strings in a session, using putValue().
I can retrieve these strings using getValue() while the same servlet is
executing. When another servlet starts later and calls getValue() null is
returned.

I found out that this is because the second servlet is getting a different
session with getSession(true). Two sessions are coexisting in the server,
both somehow corresponding to my IP address.

If the second servlet instead calls getSession(false) then null is
returned, so this is not a solution either.

Is there a way to pass the HttpSession variable to the new servlet, so that
I can retrieve the strings I stored with putValue()?

Thanks.

Fernando

___________________________________________________________________________
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

Reply via email to