/hostadmiral/branches/hibernate3/src/ak/hostadmiral/servlet/sessioncontrol/SessionObserver.java |
---|
0,0 → 1,18 |
package ak.hostadmiral.servlet.sessioncontrol; |
import javax.servlet.http.HttpSessionListener; |
import javax.servlet.http.HttpSessionEvent; |
public final class SessionObserver |
implements HttpSessionListener |
{ |
public void sessionCreated(HttpSessionEvent se) |
{ |
SessionControl.getInstance().addSession(se.getSession()); |
} |
public void sessionDestroyed(HttpSessionEvent se) |
{ |
SessionControl.getInstance().removeSession(se.getSession()); |
} |
} |