"Scheiderer, Stephan" wrote:
>
> Hi,
>
> maybe this has been asked before, but I can�t find the answer.
>
> I�m using Apache with the JServ-Module and the SSI Servlet JServSSI V1.0.
>
> When i run a servlet several times that uses the getSession(true) method, I
> always get the same sessionId()... that�s fine, so I can identify the user.
> BUT when I start the same servlet from a parsed .jhtml page with the
> <SERVLET> tag which is recognized by JServSSI, I always get new sessions.
> Is this a bug from the JServSSI servlet? It seems that the ServletRequest
> object my servlet receives is not the same as the JServSSI receives, so
> their may be
> an error in putting the ServletRequest object through to my servlet.

It's because the part of the page upto the <SERVLET> tag where you try to
create the session has already been sent to the browser, and it's too late
to set the cookie header with the session ID.

See bug #2591, http://bugs.apache.org/index/full/2591 , for a work-around.

--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

___________________________________________________________________________
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