public class SessionManager extends Object implements javax.servlet.http.HttpSessionBindingListener
Modifier and Type | Method and Description |
---|---|
void |
deleteSession(javax.servlet.http.HttpSession session) |
String |
getID() |
static SessionManager |
getInstance() |
int |
getUserCount() |
String |
getUserID(String sessionID) |
boolean |
isLogin(String sessionID) |
boolean |
isUsing(String userID) |
boolean |
isValid(String userID) |
void |
setSession(javax.servlet.http.HttpSession session,
String userID) |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent event) |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent event) |
public static SessionManager getInstance()
public boolean isValid(String userID)
public boolean isLogin(String sessionID)
public boolean isUsing(String userID)
public void setSession(javax.servlet.http.HttpSession session, String userID)
public void deleteSession(javax.servlet.http.HttpSession session)
public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
valueBound
in interface javax.servlet.http.HttpSessionBindingListener
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
valueUnbound
in interface javax.servlet.http.HttpSessionBindingListener
public int getUserCount()
public String getID()
Copyright © 2004-2013. All Rights Reserved.