ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | enhydra List | January 2005 Index

    Date Index  -->     Thread Index  -->

BUG: ClientPageRedirectException loses session if the session isNew and cookies aren't used


Hi all,

when the URL based session tracking is used (i.e. either cookie are
disabled or the "SessionEncodeUrlState" is set to "Always" in the config
file) then ClientPageRedirectException loses session when used from the
very first page in the application. I don't have a proper patch for
this, just a quick and dirty workaround in the application code:

===
if (comms.session.getHttpSession().isNew()) {
        url += ";jsessionid=" + comms.session.getHttpSession().getId();
}
throw new ClientPageRedirectException(url);
===

It would be best fixed in the Enhydra core itself, preferably in the
upcoming 5.1.x bugfix release ;-)

Petr





    Date Index  -->     Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.