• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session-timeout value

 
sarang bharambe
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey friends,

What if I have :

<session-config>
<session-timeout>30</session-timeout>
</session-config>

In DD, and I do setMaxInactiveInterval(2400)(ie 40 minutes) for my session object?

After how long would session expire?

thanks in advance
sarang bharambe
 
vidya sagar
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Specification


"The default timeout period for sessions is defined by the servlet container and can be obtained via the getMaxInactiveInterval method of the HttpSession interface. This timeout can be changed by the Developer using the setMaxInactiveInterval method of the HttpSession interface."


Timeout Configured in DD will be overwrite by the setMaxInactiveInterval method of the HttpSession interface.
[ July 20, 2006: Message edited by: vidya sagar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic