• Post Reply Bookmark Topic Watch Topic
  • New Topic

session timeout

 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • 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 ]
 
Scott Selikoff
author
Bartender
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • 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.
 
Annie Smith
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • 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:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!