Use HttpSession.setMaxInactiveInterval(int).

if (request.getRemoteHost().startsWith("192.168.")) { // or something more 
advanced
  request.getSession().setMaxInactiveInterval(1000000);
}

Ronald.


Op donderdag, 13 november 2008 om 15:21 uur schreef Tomcat Users List 
<users@tomcat.apache.org>:

Subject: Different session timeout for local and external users
Date: Thu Nov 13 15:21:20 CET 2008
From: Ehlers, Kolja <[EMAIL PROTECTED]>
Hello everybody,

is it somehow possible to set a different session timeout for local
192.168... users and others? I know I could have a rewrite rule and then
forward all calls from local workstation to a different webapp folder but I
thought maybe there is a more easy way to do this.

Thanks

ke

Geschäftsführung: Dr. Michael Fischer, Reinhard Eisebitt
Amtsgericht Köln HRB 32356
Steuer-Nr.: 217/5717/0536
Ust.Id.-Nr.: DE 204051920
--
This email transmission and any documents, files or previous email
messages attached to it may contain information that is confidential or
legally privileged. If you are not the intended recipient or a person
responsible for delivering this transmission to the intended recipient,
you are hereby notified that any disclosure, copying, printing,
distribution or use of this transmission is strictly prohibited. If you
have received this transmission in error, please immediately notify the
sender by telephone or return email and delete the original transmission
and its attachments without reading or saving in any manner.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Reply via email to