This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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

Win a copy of Android Security Essentials Live Lessons this week in the Android 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: 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
It is sorta covered in the JavaRanch Style Guide.
subject: Servlet & Jsp
Similar Threads
Idle's mind is a devils workshop
May 31, 2001 - test Job Offer $xxx,xxx Colorado Springs
No Banner for JSF book promo?
Brain Teasers