You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tom Haessler <th...@cognitronics.com> on 2002/07/31 21:58:19 UTC

Frames and Multiple sessions

Hello all,
I have a frame set with three JSP frames in it.  When the browser first 
loads the frame set each frame gets a different session object.  If they 
reload they all get the same session object (last one created).  It 
there some way around this?  I see it in Tomcat 3.3.1.

Thanks

-- 
Tom
Cognitronics Corp
Danbury CT
USA



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Frames and Multiple sessions

Posted by Will Hartung <wi...@msoft.com>.
From: "Tom Haessler" <th...@cognitronics.com>
Sent: Wednesday, July 31, 2002 12:58 PM
Subject: Frames and Multiple sessions


> Hello all,
> I have a frame set with three JSP frames in it.  When the browser first
> loads the frame set each frame gets a different session object.  If they
> reload they all get the same session object (last one created).  It
> there some way around this?  I see it in Tomcat 3.3.1.

This can be quite tricky. The reason that you're getting several sessions is
that the server is, essentially, recieving 3 seperate requests
simultaneously, and since none of those initial requests actually has a
session associated with it, you get three new, distinct sessions.

I think the Hot Tip is to make your initial FRAMESET HTML file a JSP file,
and then rewrite the URLs for the internal frame references to include the
session information. (If you're not using cookies, you need to rewrite the
internal URLs to include the session information.)

The thinking is that the your initial FRAME.jsp will get a session
established, and then pass that session along to all of the other internal
JSPs.

Regards,

Will Hartung
(willh@msoft.com)




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>