Hi,
    Make sure that the http address that u r using when the user clicks on
is exactly the same(server-name, path and the port). See if a sessionid
cookie is being passed to the server when the link is being clicked. If
still you are getting 2 sessions for the same IP address,  then i would
check the above points agin.
Raaj.

----- Original Message -----
From: Fernando Saldanha <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 18, 1999 12:15 PM


> 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
>

___________________________________________________________________________
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