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
Author

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 />sc_mohan_us@yahoo.com
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
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.
Parameters:
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
Testing
May 31, 2001 - test Job Offer $xxx,xxx Colorado Springs
No Banner for JSF book promo?
Brain Teasers