Hi,
Creating new sessions requires cookies to be sent back to the browser,
during current doPost();
Cookie info is sent as a header, and getSession(true) needs to be called
*before* any content is written to OutputStream (or writer..), to be sure
the browser will be aware that a new session was created.
How SSI works? - loads a page, *starts to write its content* to
output stream, reaches to a servlet-include tag, calls that servlet's
doSomething() - either Get or Post.
At that time, the included servlet will not be able to change
the response's headers (cos the SSI Servlet already was written something,
before).
Try to create first the session within an un-included servlet (by
accessing its url first with the browser), and after that access
SSI pages wich include servlets.
Cezar.
On Fri, 28 May 1999, 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.
>
> Can you help me?
>
> MfG Stephan Scheiderer - debis Systemhaus GEI
>
> ___________________________________________________________________________
> 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