public class CookieSessionTracker extends AbstractSessionTracker
Set-Cookie header, thus this tracker
is somewhat immune to session-fixation.activeSessions, sessionTimeOut, timedOutSessions, type| Constructor and Description |
|---|
CookieSessionTracker(String cookieName)
This tracker creates sessions on behalf of a id sent in the
request-cookie names
cookieName. |
| Modifier and Type | Method and Description |
|---|---|
void |
expireSession(Session s)
Expire the session as normally, but also remove the session-id from
the valid-list.
|
String |
extractKey(AuditEvent evt)
This method extracts the session-id that is sent in this event
within the cookie, identified by
sessionCookie. |
String |
toString()
This method returns a string of all events grouped by their session-id.
|
eventArrived, eventsArrived, getSession, getSessions, getSessionTimeOut, isExpired, reset, setSessionTimeOut, setStrictSessions, usesStrictSessionspublic CookieSessionTracker(String cookieName)
cookieName.cookieName - The name of the session-cookie.public String extractKey(AuditEvent evt)
sessionCookie.extractKey in class AbstractSessionTrackerevt - The AuditEvent from which the session-id is to be extracted.public void expireSession(Session s)
expireSession in class AbstractSessionTrackers - The session to expire.public String toString()
AbstractSessionTrackertoString in class AbstractSessionTrackerCopyright © 2013 jwall.org. All Rights Reserved.