|
From: Peter M. <pe...@mo...> - 2007-09-11 18:30:06
|
Now that I've patched sitemesh, it seems another segment of code is responsible for my session. request.getContextPath(). I'll have to find an alternative that doesn't require a session to be created as a side effect. Peter Motyka wrote: > > ack, you're right. It looks like one of the frameworks I'm using is > creating the session. > > ... > at > org.mortbay.jetty.servlet.AbstractSessionManager.newHttpSession(AbstractSessionManager.java:413) > at org.mortbay.jetty.Request.getSession(Request.java:1003) > at > javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:227) > at > com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:50) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) > ... > > Andrus Adamchik wrote: >> >> Strange. I have about 10 session-less apps that I run on Jetty 5.1.x >> (locally from Eclipse) and 6.1.x (in production) and I never observed >> unneeded session creation. >> >> Andrus >> >> >> On Sep 11, 2007, at 7:50 PM, Peter Motyka wrote: >> >>> >>>> From what I can tell, a session is getting created automatically >>>> as part of >>> the lifecycle of WebAppContext. I'm certain that my code is not >>> creating a >>> session. >>> >>> >>> Andrus Adamchik wrote: >>>> >>>> Wouldn't that be something in your app code that triggers session >>>> creation? Doesn't make much sense to disable it in Jetty, if your app >>>> thinks it needs a session. >>>> >>>> Andrus >>>> >>>> >>>> On Sep 11, 2007, at 7:44 PM, Peter Motyka wrote: >>>> >>>>> >>>>> I have no need for session management in my app and I'd like to >>>>> disable it >>>>> completely. Is there a way to do this? I've tried to set >>>>> usingCookies to >>>>> false, but then I get URL rewriting. I really don't want either! >>>>> >>>>> Thanks, >>>>> Peter >>>> >>>> >>>> --------------------------------------------------------------------- >>>> ---- >>>> This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Jetty-support mailing list >>>> Jet...@li... >>>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>>> >>>> >>> >>> -- >>> View this message in context: http://www.nabble.com/disable-session- >>> handling-tf4423851.html#a12619049 >>> Sent from the Jetty Support mailing list archive at Nabble.com. >>> >>> >>> ---------------------------------------------------------------------- >>> --- >>> This SF.net email is sponsored by: Microsoft >>> Defy all challenges. Microsoft(R) Visual Studio 2005. >>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>> _______________________________________________ >>> Jetty-support mailing list >>> Jet...@li... >>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Jetty-support mailing list >> Jet...@li... >> https://lists.sourceforge.net/lists/listinfo/jetty-support >> >> > > -- View this message in context: http://www.nabble.com/disable-session-handling-tf4423851.html#a12620886 Sent from the Jetty Support mailing list archive at Nabble.com. |