You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Oxley <da...@staffplanner.co.uk> on 2000/08/09 19:45:49 UTC

JRE1.3 and Sessions

Hello all,
When you create a session using: req.getSession(true); any applet loaded
into the browser will use the same http session when making http requests.
If the session times out our servlet will create a new session using the
same command, but when the request from the applet comes in it thinks there
is no current http session (i.e. req.getSession(false) == null;) and
therefore goes through the code that creates a new session.

To sum up the applet and the browser use the same session until the session
times out and then they use different sessions.

If you close the browser it all works again until the session times out
again.

Has anyone got any ideas, because to me this looks like a bug in the JRE1.3.
By the way the client is running under windows and the servlets are running
under AIX.

Thanks.
Dave
Dave@Staffplanner.co.uk