abstractpublic class AbstractSessionManager implements SessionManager(Code)
An Abstract implementation of SessionManager.
The partial implementation of SessionManager interface provides
the majority of the handling required to implement a
SessionManager. Concrete implementations of SessionManager based
on AbstractSessionManager need only implement the newSession method
to return a specialized version of the Session inner class that
provides an attribute Map.
If the property
org.mortbay.jetty.servlet.AbstractSessionManager.23Notifications is set to
true, the 2.3 servlet spec notification style will be used.
setCrossContextSessionIDs(boolean useRequestedId) Set Cross Context sessions IDs
This option activates a mode where a requested session ID can be used to create a
new session.
Get the workname.
If set, the workername is dot appended to the session ID
and can be used to assist session affinity in a load balancer.
String or null
initialize
public void initialize(ServletHandler handler)(Code)
public void setCrossContextSessionIDs(boolean useRequestedId)(Code)
Set Cross Context sessions IDs
This option activates a mode where a requested session ID can be used to create a
new session. This facilitates the sharing of session cookies when cross context
dispatches use sessions.
Parameters: useRequestedId - True if cross context session ID are first considered for newsession IDs
public void setInvalidateGlobal(boolean global)(Code)
Parameters: global - True if session invalidation should be global.ie Sessions in other contexts with the same ID (linked by cross context dispatchor shared session cookie) are invalidated as a group.
setMaxInactiveInterval
public void setMaxInactiveInterval(int seconds)(Code)
public void setSecureCookies(boolean secureCookies)(Code)
Parameters: secureCookies - The secureCookies to set.
setUseRequestedId
public void setUseRequestedId(boolean useRequestedId)(Code)
Set Use Requested ID.
Parameters: useRequestedId - True if requested session ID are first considered for newsession IDs
setWorkerName
public void setWorkerName(String workerName)(Code)
Set the workname.
If set, the workername is dot appended to the session ID
and can be used to assist session affinity in a load balancer.
Parameters: workerName -