org.sourcejammer.server.security
Class SessionManager
java.lang.Object
|
+--org.sourcejammer.server.security.SessionManager
- public class SessionManager
- extends java.lang.Object
Manages asynchronous user sessions by associating a session ID with a
User object.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static SessionManager getInstance()
startSession
public long startSession(User oUser)
- Returns session ID.
getUserForSession
public User getUserForSession(long lSessionID)
throws NoSuchSessionException
endSession
public void endSession(long lSessionID)
throws NoSuchSessionException
removeOldSessions
public void removeOldSessions(long olderThanTime)
throws NoSuchSessionException