Constructor and Description |
---|
SessionHelper() |
Modifier and Type | Method and Description |
---|---|
static BrowserId |
getBrowserId(org.apache.wicket.Session session) |
static boolean |
isLoggedIn(org.apache.wicket.Session session) |
static void |
logIn(org.apache.wicket.Session session,
BrowserId browserId)
Stores the authentication data in the current web session
|
static void |
logOut(org.apache.wicket.Session session)
Removes the authentication data from the current web session
|
public static BrowserId getBrowserId(org.apache.wicket.Session session)
session
- the current web sessionnull
.public static boolean isLoggedIn(org.apache.wicket.Session session)
session
- the current web sessiontrue
if there is authentication data. false
- otherwise.public static void logIn(org.apache.wicket.Session session, BrowserId browserId)
session
- the current web sessionbrowserId
- the authentication datapublic static void logOut(org.apache.wicket.Session session)
session
- the current web sessionCopyright © 2015. All rights reserved.