public class LoginHttpSessionBindingListener
extends java.lang.Object
implements javax.servlet.http.HttpSessionBindingListener
Constructor and Description |
---|
LoginHttpSessionBindingListener() |
Modifier and Type | Method and Description |
---|---|
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event)
사용자의 로그인 세션에 HttpSessionBindingListener가 바인딩될 때 자동 호출되는 메소드
사용자 세션이 이미 존재하는지를 검사하여 하나의 어플리케이션 내에서 하나의 세션만 유지되도록 한다.
|
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
로그아웃 혹은 세션타임아웃 설정에 따라 사용자 세션으로부터
HttpSessionBindingListener가 제거될 때 자동 호출되는 메소드로,
사용자의 로그인 아이디에 해당하는 세션을 ConcurrentHashMap에서 모두 제거한다
|
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
event
- HttpSessionBindingEventpublic void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
event
- HttpSessionBindingEvent