File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet & Jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet & Jsp" Watch "Servlet & Jsp" New topic

Servlet & Jsp

S Chandra Mohan
Ranch Hand

Joined: Oct 19, 2000
Posts: 75
Hai everyone,
how can i set the session interval.
where can i change.
at present it is 10 min.
i want to make i 1/2 hour.
please reply

Have a wonderful day and wish u success<p>S Chandra Mohan<br />
Tony Alicea

Joined: Jan 30, 2000
Posts: 3226
In javax.servlet.http.HttpSession Interface:
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.
interval - An integer specifying the number of seconds

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
I agree. Here's the link:
subject: Servlet & Jsp
It's not a secret anymore!