File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Setting up the time of the headers in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Setting up the time of the headers in JSP" Watch "Setting up the time of the headers in JSP" New topic
Author

Setting up the time of the headers in JSP

Saurabh Sehgal
Greenhorn

Joined: Jun 18, 2001
Posts: 2
Hi freinds,
I am working on a web site.
I was facing the problem that once the session is created, it stays active for a long length of time.
I want to know how that session get expires : how to set the time of expiry of the session.
Sincerely,
Saurabh
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
You can use the get/setMaxInactiveInterval() method to achieve what you want to do. You can also invalidate a session by using the session's invalidate() method.

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Saurabh Sehgal
Greenhorn

Joined: Jun 18, 2001
Posts: 2
Thanks Bosun for your reply. Though I will try these things out, but could you tell me how to manipulate the header information. I know that there is something like "response.setHeader(.............)", but I ain't too sure how it works.
Bye,
Saurabh

Originally posted by Bosun Bello:
You can use the get/setMaxInactiveInterval() method to achieve what you want to do. You can also invalidate a session by using the session's invalidate() method.

Bosun

 
Don't get me started about those stupid light bulbs.
 
subject: Setting up the time of the headers in JSP