Re: OpenAmf recreates sessions when cookies aren't enabled.
Will Prater <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
On Jul 7, 2005, at 9:17 PM, Troy Gardner wrote: > > >> This did not work for our application server. >> > > I checked turning off cookies in the browser and was able to > replicate the > session being recreated with every request error. It did work in > every other > case (browser, projector or swf off filesystem). I don't have time > to fix it, > but I looked into it for a bit, here's what I found. > > The cookies= false is inside server.xml not web.xml in the context > tag. > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html Thanks for that info. > Tomcat (ServletAPI) should use response.encodeURL() on the response > in order to > do URL rewriting (putting a sessionID in the URL). This is supposed > to use an > alternate URL (as far as I can tell) e.g. /openamf/someothergateway > > the line where the session is created in OpenAMF is the > DefaultGateway.preInvokeService method > httpServletRequest.getSession().getAttribute > (serviceInvoker.getPersistentServiceName()); > -----------------------------/\ > > I'm imaginining but not 100% sure that the encodeURL change will > have to happen > around serializeAMFMessage. This is exactly where I have been looking tonight. I will see what I can do. -WP3 ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar