Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

http session timeout

 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

help me here..:

if we do have this:

- session.setMaxIntervalActive(0); (in SECONDS)
- The related session will be finished at the same time , correct?


and what if we do this:

<session-config>
<session-timeout>0</session-timeout> (in MINUTES)
</session-config>

What is supposed to happen here?

From J2eecertificate.com i got the following answer:

"If the timeout is 0 or less, the container ensures the default behaviour of sessions is never to time out."

is that correct??

Tks.
 
Bhavna Jharbade
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Felipe
Thats absolutely correct, though a bit confusing.

A session-timeout value of 0 or less means that the session will never expire, while if we want to specify that a session will never expire using setMaxInactiveInterval() method a value less than 0(not 0) is required.

I hope now you are clear about it.
 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bhavna ,

Yes i�m thank you so much!!
 
Gab Buda
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this seems so odd that I made a little test for verify and I confirm... this is what really happens.

Tks Felipe for rising the question!
[ April 05, 2006: Message edited by: Gab Buda ]
 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
AMAR PATIL
Greenhorn
Posts: 16
Java Oracle Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi fielipe,
i think that u have to put negative number and not 0.
and let me know if u going to tryout with 0 session time out.
i'll try at my side.
I think that the page will be displayed but then none of the links will work because of timeout.
nnnnnnnnnnjoy.........
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic