File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session time

 
Faris A Saduli
Ranch Hand
Posts: 58
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry:

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

the session falls after 1900 seconds(not minutes!)
 
Bill Lasley
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops. I see that this forum software does not support angle brackets.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic