• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Invalidation

 
Srividhya Kiran
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In DD, <session-timeout> 10 </session-timeout> and programatically it is set
setMaxInActiveInterval(10). So which one has priority?

Thanks
Srividhya
 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
setMaxInactiveInternal(10) (we specify the time in seconds) has high priority over the session timeout element(we specify the time in minutes) in web.xml.
 
Srividhya Kiran
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks amandeep. Is it always the case that declaring element programmatically takes priority over element declared in DD.

Srividhya
 
Amandeep Singh
Ranch Hand
Posts: 850
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are right....
 
Srividhya Kiran
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks amandeep.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic