[enhydra] Problem with ServerPageRedirectException's + SessionEncodeUrlState="always"

"Michael Strapp" <[email protected]> Mon, 4 Jul 2005 17:49:11 -0400
Newsgroups gmane.comp.java.enhydra.general
Message-ID <001101c580e2$373f32a0$3401a8c0@Mike>
Hi all,
    I have encountered a problem under both Enhydra 5.1 and Enhydra 5.4 (and it might be present under Enhydra 6.x), that a ServerPageRedirectException does not maintain the session when cookies on the browser side are disabled, which causes Enhydra to switch to using URL encoding to keep track of the session key - or if you set the SessionManager.SessionEncodeUrlState setting for the Enhydra app to "always".  I wrote some test code (calling the comms.session.getSessionKey() and and comms.request.getRequestURI() methods), and confirmed that the URL contains the ';jsessionid=' string is present, and the session key is maintained, for the presentation object that throws the ServerPageRedirectException - but for the presentation object that Enhydra launches in response to the ServerPageRedirectException, the URL does not contain the ';jsessionid=' string, and a new session is started (with a new session key).

    I've never examined the Enhydra source code that processes requests or redirections, and I wouldn't really know where to look for the source of this problem - can someone investigate and see what they can find?

Thanks in advance,
Michael Strapp.