>>> David Galimberti <[EMAIL PROTECTED]> 01-Feb-00 12:19:12
PM >>>
>I am having problems with session managment for a servlet that is
the
>src of an HTML img tag, for example:
<img src="/servlet/imageServlet">
>Prior to using the servlet I created a session for the user but the
servlet
>does not find one for the request (i.e. request.getSession(false)
returns
>null). If I access the servlet via a redirect I can get to the
session just fine.
Some implementations ensure that a session cookie only goes to the
URL that created it...
eg: if the session is created in a servlet mapped to:
/myservlet
and then you get the session in a servlet mapped to:
/otherservlet
then you'll get a different session.
If you created the session in another servlet mapped in the /servlet
tree though you should be ok.
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