Interesting. You are right. A trivial jsp with only text inside produces a session. I am fairly certain I have seen servlets (not JSPs) behaving without any session tracking at all.
-----Original Message----- From: David Durham [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 4:37 PM To: Tomcat Users List Subject: Re: turning off sessions Tim Lucia wrote: > 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); That's strange because there is no call to getSession() in my code. So, maybe it's the result of the fact that I'm using a JSP. If that's the case, then Tomcat is, in a sense, creating sessions. Anyway, I think the context configuration that I had: <Context path="/app"> <Manager maxInactiveInterval="6"/> </Context> conflicts with the default session-config from conf/web.xml <session-config> <session-timeout>30</session-timeout> </session-config> I added: <session-config> <session-timeout>1</session-timeout> </session-config> to my app, and that's good enough for me. Thanks. -Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]