• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

http session timeout

 
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bhavna ,

Yes i�m thank you so much!!
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Greenhorn
Posts: 16
Oracle Suse Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.........
 
reply
    Bookmark Topic Watch Topic
  • New Topic