Interface SessionManager
- All Known Implementing Classes:
DefaultSessionManager,ServletSessionManager
public interface SessionManager
HTTP session manager abstraction responsible for keeping track of HTTP session associated with a user
Request.- Since:
- 2.3.17
-
Method Summary
Modifier and TypeMethodDescriptionchangeSessionId(Request request, Session session) Change theSessionid and return the original id.voidconfigureSessionCookie(Request request, Cookie cookie) Configure session cookie before adding it to theRequest.getResponse().createSession(Request request) getSession(Request request, String requestedSessionId) Return the session associated with this Request, creating one if necessary and requested.voidsetSessionCookieName(String name) Set the session cookie name that will be used by sessions created by thisSessionManager.
-
Method Details
-
getSession
Return the session associated with this Request, creating one if necessary and requested. -
createSession
-
changeSessionId
Change theSessionid and return the original id. -
configureSessionCookie
Configure session cookie before adding it to theRequest.getResponse().- Parameters:
request-cookie-
-
setSessionCookieName
Set the session cookie name that will be used by sessions created by thisSessionManager.- Parameters:
name- the session cookie name- Since:
- 2.3.29
-
getSessionCookieName
String getSessionCookieName()- Returns:
- the session cookie name
- Since:
- 2.3.29
-