Re: turning off sessions

2006-02-09 Thread Eric Haszlakiewicz
On Wed, Feb 08, 2006 at 12:14:36AM +0100, Ed wrote: > Yep, JSPs automatically create sessions (part of the JSP spec certainly). > > To turn session off > put <%@ page session="false" %> in your JSP. > > Beware, that web frameworks such as struts may also create sessions for > other purposes (eg,

Re: turning off sessions

2006-02-07 Thread David Durham
To turn session off put <%@ page session="false" %> in your JSP. That works. Thanks, Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: turning off sessions

2006-02-07 Thread Tim Lucia
Thanks! Now I do remember seeing this. Been a long time since I have created a stateless application, I guess ;-) -Original Message- From: Ed [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 6:15 PM To: users@tomcat.apache.org Subject: RE: turning off sessions Yep, JSPs

RE: turning off sessions

2006-02-07 Thread Ed
Yep, JSPs automatically create sessions (part of the JSP spec certainly). To turn session off put <%@ page session="false" %> in your JSP. Beware, that web frameworks such as struts may also create sessions for other purposes (eg, storing the locale). you may also turn this off Hope it helps

RE: turning off sessions

2006-02-07 Thread Tim Lucia
m Lucia [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 4:49 PM To: 'Tomcat Users List' Subject: RE: turning off sessions 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

RE: turning off sessions

2006-02-07 Thread Tim Lucia
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

Re: turning off sessions

2006-02-07 Thread David Durham
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()

RE: turning off sessions

2006-02-07 Thread Tim Lucia
need one. This caused me confusion once upon a time. Tim -Original Message- From: David Durham [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 3:17 PM To: users@tomcat.apache.org Subject: turning off sessions Anyway to configure a Tomcat 5.5 app to not create sessions t

turning off sessions

2006-02-07 Thread David Durham
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., But, even that doesn't work properly. Anyone know what I need to do? Thanks, -Dave --