Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting up the time of the headers in JSP

 
Saurabh Sehgal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Saurabh Sehgal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic