You didn't mention which Tomcat version you are using, so I'm going to
assume 4.x.

You need to add (between <servlet-mapping>s and <mime-mappings>s):
<session-config>
  <session-timout>${minutes}</session-timeout>
</session-config>

to conf/web.xml (where, of course, ${minutes} is replaced with the numerical
value of the number of minutes you want :).  This will change the time-out
server-wide unless any web-app has a similar declaration.

Of course, this will work with all released versions of Tomcat (>= 3.2.x) if
you include it in your own web-app's web.xml file.


"Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]> wrote in message
005401c2a6aa$56e75ed0$1901a8c0@site13">news:005401c2a6aa$56e75ed0$1901a8c0@site13...
> I have a web site using JSP that, when the user logs in, sets a cookie
with
> the current session ID.  Every page visited thereafter checks the current
> session ID with the stored one in the cookie.  I've found that the session
> ID changes after 60 mins (which invalidates my user's session).  Is there
a
> setting in Tomcat that controls the amount of session time before changing
> the session ID?  I want to increase it beyond 60 mins but I've yet to find
> out how.
>
> Thanks in advance,
> Kenny
>
> FYI:  I'm using Tomcat 4.0.5 as my JSP/servlet server.





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to