• 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

session timeout

 
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using atg server 7.0. for my application. I have not specified maxinterval time in my web.xml file.

api says "getMaxInactiveInterval() Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses".

getMaxInactiveInterval() is zero in my case.I have not accessed the page for more than 1 min. still session variables are returning the correct values. which i feel should it should not.

Please help me to overcome this confusion.

Regards,
Neeraj.
[ December 20, 2005: Message edited by: Bear Bibeault ]
 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's probably a server setting (or at the very least literature) about the default timeouts for that application. If you're worried about, set a max timeout in the web.xml file for safety.
 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Neeraj Vij:

getMaxInactiveInterval() is zero in my case.I have not accessed the page for more than 1 min. still session variables are returning the correct values. which i feel should it should not.



getMaxInactiveInterval() returning a value of zero implies that the container is free to choose the session timeout. The default timeout depends on the servlet container.
 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

Thanks for the inputs.

is there any way to know the timeout period of the servlet container.

Regards,
Neeraj.
 
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1800 seconds (or) 30 minutes for Tomcat Container.


From Spec:

The default timeout period for sessions is defined by the servlet container and can be obtained via the getMaxInactiveInterval method of the HttpSession interface.



Example Code:

reply
    Bookmark Topic Watch Topic
  • New Topic