Geoff,
When I looked over the Stack Trace it appears as though
the session this page rendering belonged too is alive. In
the tapestry Exception page it says that Session.isNew()
is NO. Then it contniues the process until it gets into
the Visit Object which I clear during Logout.
Could it be that my logout mechanism is not working? I
used to do this:
Visit visit = (Visit)getVisit();
visit.clear();
try {
((IEngineServiceView)getEngine()).restart( cycle );
}catch(Exception e) {
_logger.warn("Logout Exception: Ignoring ... ",e);
}
Then I read a posting that you should not do this in a
listener and they proposed using the restart service
directly. I could not find an example of this so I tried
the following:
Visit visit = (Visit)getVisit();
visit.clear();
IEngineService pageService =
cycle.getEngine().getService(Tapestry.RESTART_SERVICE);
String pageName =
cycle.getPage().getExtendedId();
String redirector = pageService.getLink(cycle,
null, new String[0]).getURL();
throw new RedirectException(redirector);
I now do this. Both seem to work for me for the most
part. But the first time I saw this problem It was an
overnight thing and the Logout code was not involved. The
Session should have timed out. I do NOT have any fancy
ajax stuff that pings to keep the session alive either.
Doug
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]