Which servlet engine you are using. I think, You can set it directly in the
server settings.But if your request processed at two servers(dual server)
simultaneously, then the information set at the client machine will be lost.
But otherwise you can set at the server settings itself.
This method is available at which jsdk version? In jsdk2.0 this is not
available.
-----Original Message-----
From: Bartsch Axel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 28, 2000 12:29 PM
To: [EMAIL PROTECTED]
Subject: session maximum inactive interval
Hi members,
I am using a HTTPSession object running with cookies.
I am setting the session maximum inactive interval to 1 hour by using the
following code:
session=req.getSession(true);
session.setMaxInactiveInterval(3600);
JAVA servlet API:
public void setMaxInactiveInterval(int interval)
Specifies the time, in seconds, between client requests before the
servlet container will invalidate this session. A
negative time indicates the session should never timeout.
Parameters:
interval - An integer specifying the number of seconds
But when testing the session only stays alive for a couple of seconds: the
maximum I achieved was 9 sec??
and the alive time is not always the same.
Does anybody know more about this and can help me?
Axel, Lannion/France
___________________________________________________________________________
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