The reason for loosing the session is that another browser window is in
another process and the session cookies are not available there. It also
depends on the browser you useand its settings (whether the new window is in
the same process or in a new one). To get around it you need to do session
tracking without using cookies i.e. with session ID in the URL.
WBR, Fedor.
> -----Original Message-----
> From: Laurent, Pascal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 04, 2000 1:22 AM
> To: [EMAIL PROTECTED]
> Subject: Keep session tracking when opening a new window
>
>
> Hi!
> I'd like to execute a servlet in a new window and keep the
> user's session
> data.
> To run the servlet I'm using something like this:
> ... a href="./servelts/MyServlet" target="_blank" ...
> If no other browser window is open, MyServlet fails saying no session
> available.
> If another browser window is open, MyServlet runs
> successfully using the
> session of the calling servlet.
> I'm using Apache 1.3.9, JServ 1.1, Jsdk 2.0, IE4 & 5.
> Thanks for your help.
> Pascal LAURENT
>
> ______________________________________________________________
> _____________
> 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