|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lutris.appserver.server.session.SessionUtil
Static methods that can be used by applications to manage sessions.
Method Summary | |
static void |
logIn(User user,
Session session,
boolean multiple)
Logs a user in. |
static void |
logOut(Session session)
Dissasociates the user from the session and all references to the session are deleted from the session manager. |
static boolean |
resumeLogIn(User user,
Session session)
If a user attempts to login but has not logged out from a previous session then this method can be used to copy data from the previous session into this session and to log out the previous session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void logIn(User user, Session session, boolean multiple) throws SessionException
user
- the user to log in.session
- the session to associated with the user.multiple
- if true the user can have more than one session
associated with him/her. If false, all previous sessions
associated with the user will be removed.
SessionException
- if an error occurs.public static void logOut(Session session) throws SessionException
session
- the session associated with the user.
SessionException
- if an error occurs.public static boolean resumeLogIn(User user, Session session) throws SessionException
user
- the usersession
- the session
SessionException
- if an error occurs.
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |