Sorry, I should've said 10 seconds (instead of 10 minutes).
Walter
-----Original Message-----
From: Lara, Walter
Sent: Thursday, September 21, 2000 10:27 AM
To: 'A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology.'
Subject: RE: http session bugs
Your original session may be expired (since the default session timeout is
engine-specific). Try overwritting the default timeout after you create a
new session. For example, to set it to 10 minutes:
.
.
HttpSession s = req.getSession();
if(s.isNew())
s.setMaxInactiveInterval(10);
.
.
Walter.
-----Original Message-----
From: Akshaykumar Sharma [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 20, 2000 11:12 PM
To: [EMAIL PROTECTED]
Subject: Re: http session bugs
use req.getSession();
-----Original Message-----
From: Jake Brain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 20, 2000 11:04 PM
To: [EMAIL PROTECTED]
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
___________________________________________________________________________
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