users@glassfish.java.net

How to Disable HttpSessions?

From: <glassfish_at_javadesktop.org>
Date: Thu, 30 Apr 2009 09:32:58 PDT

Hello all,

I need to make my web application completely stateless, and thus would like to turn off http session generation by the app server (ie, no memory consumed, no jsessionid generation, etc). These are business requirements (not my fault!). In any event, the only thing I've done is set the JSP tags to not participate in sessions - but I don't see anything in the sun-web.xml that indicates if GlassFish can be told to NOT create a session. Is this possible, and if so, where is that configured (short of me writing a servlet filter that programmatically calls session.invalidate() ) ?

Thanks!
[Message sent by forum member 'csiemback' (csiemback)]

http://forums.java.net/jive/thread.jspa?messageID=344520