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: 1506
posted
0
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
posted
0
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.