• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting up the time of the headers in JSP

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic