OpenAmf recreates sessions when cookies aren't enabled.
Troy Gardner <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
> 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 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. Troy Gardner -"How you live your seconds, is how you live your days, is how you live your life..." http://www.troygardner.com -my world http://www.troyworks.com - building Rich Internet Applications http://www.intrio.com -helping bridge the gap between the humans and machines. Home of the Flickey ------------------------------------------------------- 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