I implemented the listener approach to logging out as reccomended by the FAQ on the Tapestry Wiki. I used this approach to give the user an option to continue or to cancel out and to do some logging.

Occasionally I have received a ServletException "Session Already Invalidated". I found a blurb somewhere on the net that mentioned do a restart like this:
public void logout(IRequestCycle cycle)
{
IEngineServiceView engine = (IEngineServiceView)getEngine();
engine.restart();
}


in a listener is bad because the page will still render and could cause this exception. However the responder did not give a clear alternative as to what to do.

So I again I must ask the Tapestry Gods ..... HELP

What is the best way to handle a logout CLEANLY that terminates the session?

Please give an example if its not a simple one.

Thanks again to all,

Doug


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to