This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 3222
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
Have you checked out Aspose?
subject: Servlet & Jsp
It's not a secret anymore!