tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Lucia" <>
Subject RE: turning off sessions
Date Tue, 07 Feb 2006 21:09:30 GMT
Tomcat doesn't create sessions.  Web applications create sessions.  I.e.,
code says:

HttpSession session =
((HttpServletRequest)request).getSession({true|false}); // true for create
if not exist, false for don't create);

FWIW, Struts will create one for you, even if you don't need one.  This
caused me confusion once upon a time.


-----Original Message-----
From: David Durham [] 
Sent: Tuesday, February 07, 2006 3:17 PM
Subject: turning off sessions

Anyway to configure a Tomcat 5.5 app to not create sessions through
META-INF/context.xml?  The closest thing I've found was the
maxInactiveInterval attribute of the manager element.  E.g.,

<Context path="/app">
	<manager maxInactiveInterval="6"/>

But, even that doesn't work properly.  Anyone know what I need to do?



To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message