Package org.eclipse.jetty.session
Interface SessionConfig
- All Known Subinterfaces:
SessionConfig.Mutable
,SessionManager
- All Known Implementing Classes:
AbstractSessionManager
,SessionHandler
,SessionHandler
public interface SessionConfig
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Session Max Age.static final String
Session cookie name.static final String
Session Domain.static final String
Session id path parameter name.static final String
Session Path. -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Field Details
-
__SessionCookieProperty
Session cookie name. Defaults toJSESSIONID
, but can be set with theorg.eclipse.jetty.session.SessionCookie
context init parameter.- See Also:
-
__DefaultSessionCookie
- See Also:
-
__SessionIdPathParameterNameProperty
Session id path parameter name. Defaults tojsessionid
, but can be set with theorg.eclipse.jetty.session.SessionIdPathParameterName
context init parameter. If context init param is "none", or setSessionIdPathParameterName is called with null or "none", no URL rewriting will be done.- See Also:
-
__DefaultSessionIdPathParameterName
- See Also:
-
__CheckRemoteSessionEncodingProperty
- See Also:
-
__SessionDomainProperty
Session Domain. If this property is set as a ServletContext InitParam, then it is used as the domain for session cookies. If it is not set, then no domain is specified for the session cookie.- See Also:
-
__DefaultSessionDomain
-
__SessionPathProperty
Session Path. If this property is set as a ServletContext InitParam, then it is used as the path for the session cookie. If it is not set, then the context path is used as the path for the cookie.- See Also:
-
__MaxAgeProperty
Session Max Age. If this property is set as a ServletContext InitParam, then it is used as the max age for the session cookie. If it is not set, then a max age of -1 is used.- See Also:
-
-
Method Details
-
getMaxCookieAge
@ManagedAttribute("if greater the zero, the time in seconds a session cookie will last for") int getMaxCookieAge() -
getMaxInactiveInterval
@ManagedAttribute("default maximum time a session may be idle for (in s)") int getMaxInactiveInterval() -
getRefreshCookieAge
-
getSameSite
-
getSessionComment
@ManagedAttribute("the cookie comment to use when setting session tracking cookies") String getSessionComment() -
getSessionCookie
-
getSessionDomain
@ManagedAttribute("domain of the session cookie, or null for the default") String getSessionDomain() -
getSessionIdPathParameterName
@ManagedAttribute("parameter name to use for URL session tracking") String getSessionIdPathParameterName() -
getSessionIdPathParameterNamePrefix
String getSessionIdPathParameterNamePrefix() -
getSessionPath
-
isCheckingRemoteSessionIdEncoding
-
isHttpOnly
-
isPartitioned
-
isSecureCookies
@ManagedAttribute("if true, secure cookie flag is set on session cookies") boolean isSecureCookies() -
isSecureRequestOnly
-
isUsingCookies
-
isUsingUriParameters
-