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

Reply via email to