• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setMaxInactiveInterval(0), this means ?

 
michelle Wang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if session.setMaxInactiveInterval(0) , also same as <session-timeout> 0 </sesion-timeout> this means never timeout or timeout immediately? from the HFSJ page 247, it says it is timeout IMMEDIATELY, but i find another book say it is never timeout...
 
Nitish Bahadur
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A negative time indicates the session should never timeout.
 
Deepa Rao
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for <session timout> if its 0 or <0 means session never expires
for setMaxInt..(int) if its only <0 means session never expires, if its 0 here ...i guess its timeout immediately.
 
Ramesh Babu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what you guys say


<session-timeout> 0 </sesion-timeout> ---- session never expires
<session-timeout> -1 </sesion-timeout> ---- session never expires
session.setMaxInactiveInterval(-1) ---- session never expires

session.setMaxInactiveInterval(0) ---- expires imm.

:roll:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic