1. request.getSession(true) will create a new session only if there is no
existing session. I havent the problem ever.
2. timeout is actually the maximum period for which a session may remain
inactive before it is invalidated.
-Nitin
----- Original Message -----
From: "Jake Brain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 20, 2000 11:03 PM
Subject: http session bugs
> 2 quickies - any ideas or experiences shared are appreciated.
>
> I have a valid session holding needed data, I access a servlet that calls
> request.getSession(true). Then later the servlet checks for the needed
data
> in the session, this data is not put in by the servlet, it does not find
the
> data and I have problems. I think I can conclude that the call to
> request.getSession(true) created a new session since the cookie session id
> could not be found in the appserver. I am wondering if others have had
this
> problems, having a valid session, calling req.getSession(true) and losing
the
> old session, creating a new one.
> Also when you configure the session timeout for a sessions, does that mean
if
> you are inactive for that time period the session will be lost, or does it
> mean even if you are active in your session - the session will end when
the
> timeout period comes. Thanks
>
>
___________________________________________________________________________
> 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