Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session time out confusion

 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpSession.setMasInactiveInterval().

In the spec I found
By definition, if the timeout
period for a session is set to -1, the session will never expire.


But, in API doc it says:
A negative time indicates the session should never timeout.


Which is correct for the exam?
[ March 02, 2007: Message edited by: Tridib Samanta ]
 
Rishi Chopra
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

for setMaxInactive method , if you pass the argument as negative time the session will never expire .

Whereas in the DD if you set session timeout as 0 or negative the session never expires...

Hope i am correct ...? ranchers.

Regards
Rishi
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rishi,

read this thread

it has all the time outs - for sessions and cookies.
 
Tridib Samanta
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for your replies!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic