Dear all,
I would like to redirect the user to another (static) page and invalidate
the session from within my Screen. What would be the best way of doing that
? Currently I have tried the following (and failed miserably ;-)
try {
data.getResponse().sendRedirect(myClass.getRedirectURI());
HttpSession session = data.getSession();
session.invalidate();
}
catch (IllegalStateException ise) {
}
... it fails because I do not have ActionControlList set on my RunData
object. Turbine.java tries to do the following after the session is
terminated:
// if a module has set data.acl = null, remove acl from session
if ( data.acl == null )
{
data.getSession().removeValue(AccessControlList.SESSION_KEY);
}
... IllegalStateException due to getSession() ...
I have created my own session validator - SessionValidator4Guests, and I
wouldn't like to use any AccesssControlList. In fact, within my validator
I'm setting:
data.user = new TurbineNoDbUser();
I would appreciate very much your help,
Cheers,
Krzysztof
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]