This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Websphere and the fly likes Session time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Session time" Watch "Session time" New topic
Author

Session time

Faris A Saduli
Ranch Hand

Joined: Feb 22, 2005
Posts: 58
Hi,
In WSAD , web.xml have the details of session time and Servlet itself has session time, then wht is the role of these to session timing.

plz help me to know abt it
thank you friends
Giulietta Blumarine
Ranch Hand

Joined: Dec 03, 2004
Posts: 59
if you set, in your web.xml, for example:

<session-config>
<session-timeout>1900</session-timeout>
</session-config>

it means that your session finishes after 1900 minutes
and you loses every information/attributes set in session!
Giulietta Blumarine
Ranch Hand

Joined: Dec 03, 2004
Posts: 59
Sorry:

-session-config-
-session-timeout-1900-/session-timeout-
-/session-config-

the session falls after 1900 seconds(not minutes!)
Bill Lasley
Ranch Hand

Joined: Jun 10, 2002
Posts: 50
Actually, Giulietta, you were correct the first time; session-timeout is expressed in minutes. "... The specified timeout must be expressed in a whole number of minutes. If the timeout is 0 or less, the container ensures the default behaviour of sessions is never to time out. If this element is not specified, the container must set its default timeout period." from the Servlet 2.4 spec.

Also, timeout is not precise. It may take minutes more to actually timeout.

And the correct format is:

"<session-config>
<session-timeout>30</session-timeout>
</session-config>"

Bill Lasley
Versant Corp.
http://www.versant.com
[ March 31, 2005: Message edited by: Bill Lasley ]
Bill Lasley
Ranch Hand

Joined: Jun 10, 2002
Posts: 50
oops. I see that this forum software does not support angle brackets.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session time