Monday, January 11, 2010

Detect http session created or destroyed

Implement HttpSessionListener and add the listener in web.xml. The methods will be triggered when a session is created or destroyed.


public class MyHttpSessionListener implements HttpSessionListener { 
public void sessionCreated(HttpSessionEvent se) {

public void sessionDestroyed(HttpSessionEvent se) {

No comments:

Post a Comment