public interface SessionConfiguration
While some session configuration parameters (those specified in web.xml and
SessionCookieConfig) can be specified through WebContainer
and during WAR deployment, some server-specific options can be configured only globally through
PaxWebConstants.PID.
Global (this) configuration is also used when no context-specific session configuration is defined.
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.SessionCookieConfig |
getDefaultSessionCookieConfig()
This method gathers some of individual session configuration parameters and returns ready to use
SessionCookieConfig object. |
String |
getSessionCookieComment()
<session-config>/<cookie-config>/<comment> |
String |
getSessionCookieDomain()
<session-config>/<cookie-config>/<domain> |
Boolean |
getSessionCookieHttpOnly()
<session-config>/<cookie-config>/<http-only> |
Integer |
getSessionCookieMaxAge()
<session-config>/<cookie-config>/<max-age> |
String |
getSessionCookieName()
<session-config>/<cookie-config>/<name> - if not specified, defaults to JSESSIONID |
String |
getSessionCookiePath()
<session-config>/<cookie-config>/<path> - if not specified, it will match the context path. |
String |
getSessionCookieSameSite()
No equivalent in
web.xml. |
Boolean |
getSessionCookieSecure()
<session-config>/<cookie-config>/<secure> |
File |
getSessionStoreDirectory()
If
getSessionStoreDirectoryLocation() returns valid location, this method returns the corresponding
File object |
String |
getSessionStoreDirectoryLocation()
All server runtimes allow configuration of file session persistence and with this property we
can specify the persistent location (directory) of such session storage.
|
Integer |
getSessionTimeout()
<session-config>/<session-timeout> - returns the time in minutes after which an inative settion times out. |
String |
getSessionUrlPathParameter()
Allows configuration of Jetty's SessionHandler.SessionIdPathParameterName.
|
String |
getSessionWorkerName()
PAXWEB-144: Allows configuration of Jetty's SessionHandler.SessionIdManager.workerName to assist session
affinity in a load balancer.
|
Integer getSessionTimeout()
<session-config>/<session-timeout> - returns the time in minutes after which an inative settion times out.
Defaults to 30 minutes (as in Tomcat).String getSessionCookieName()
<session-config>/<cookie-config>/<name> - if not specified, defaults to JSESSIONIDString getSessionCookieDomain()
<session-config>/<cookie-config>/<domain>String getSessionCookiePath()
<session-config>/<cookie-config>/<path> - if not specified, it will match the context path.String getSessionCookieComment()
<session-config>/<cookie-config>/<comment>Boolean getSessionCookieHttpOnly()
<session-config>/<cookie-config>/<http-only>Boolean getSessionCookieSecure()
<session-config>/<cookie-config>/<secure>Integer getSessionCookieMaxAge()
<session-config>/<cookie-config>/<max-age>String getSessionCookieSameSite()
web.xml. SameSite attribute for session cookie.String getSessionUrlPathParameter()
jsessionid.String getSessionWorkerName()
String getSessionStoreDirectoryLocation()
File getSessionStoreDirectory()
getSessionStoreDirectoryLocation() returns valid location, this method returns the corresponding
File objectjavax.servlet.SessionCookieConfig getDefaultSessionCookieConfig()
SessionCookieConfig object.Copyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.