"I read in documentation that if the J2EE Session Variables
check box
is checked that the session variables will expire whenever
the user
closes their browser, or when the session timeout period
elapes
(whichever comes first)."
No this is not quite the way it works. The session only
expires on the
server after the defined timeout. The server has no knowledge
you have
closed your browser. Browsers do not send notifications to
all the
websites that you have visited telling them you are closing
it. There
are some JavaScript solutions that attempt to mitigate this,
but I don't
find them all that reliable.
What happens, is that the cookie values that define which
session a user
belongs to is discarded by the browser. Thus if a user
connects to your
website again, it does not have these cookies to send so a
new session
is created. But the old one could easily still exist.
To expand on this, since HTTP requests & responses are
stateless, a
server has no idea who is making them. To allow this, unique
(hopefully) cookie values are assigned to each user and the
browser must
return these values in all future requests to access the same
session.
Without these values, new sessions are generated.
HTH
Ian