[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    Re: Frames and Multiple sessions
From:       willh () msoft ! com (Will Hartung)
Date:       2002-07-31 20:41:05
[Download RAW message or body]

From: "Tom Haessler" <thaessler@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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic