RE: How to catch a session-timeout
"Christian Cryder" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Here's a class that we use to do it in our apps... When a user logs in we call: login(HttpServletRequest request, UserMap user) When they logout, we call: logout() And there's also a facility for logging users out: logout(String sessionId) logoutAll() This class uses a session listener to determine when the session expires, allowing it to log the event, perform any additional cleanup, etc. Note that we _don't_ have this implemented as a Barracuda event handler, because we're not really concerned about generating a response in this case. Christian ---------------------------------------------- Christian Cryder Internet Architect, ATMReports.com Project Chair, BarracudaMVC - http://barracudamvc.org ---------------------------------------------- "Coffee? I could quit anytime, just not today" > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of merg > Sent: Wednesday, September 24, 2003 9:05 AM > To: [email protected] > Subject: [Barracuda] How to catch a session-timeout > > > What is a good way to intercept a session timeout in Barracuda? > Is it possible > to redirect to a predefined .event to handle this nicely. > > Regards, > Merg > _______________________________________________ > Barracuda mailing list > [email protected] > http://barracudamvc.org/lists/listinfo/barracuda
SessionManager.java
(application/octet-stream, 8 KB) - not displayed