ZAP API UI

Component: httpSessions

Views

activeSession (site* ) Gets the name of the active session for the given site.
defaultSessionTokensGets the default session tokens.
sessionTokens (site* ) Gets the names of the session tokens for the given site.
sessions (site* session ) Gets the sessions for the given site. Optionally returning just the session with the given name.
sitesGets all of the sites that have sessions.

Actions

addDefaultSessionToken (sessionToken* tokenEnabled ) Adds a default session token with the given name and enabled state.
addSessionToken (site* sessionToken* ) Adds the session token to the given site.
createEmptySession (site* session ) Creates an empty session for the given site. Optionally with the given name.
removeDefaultSessionToken (sessionToken* ) Removes the default session token with the given name.
removeSession (site* session* ) Removes the session from the given site.
removeSessionToken (site* sessionToken* ) Removes the session token from the given site.
renameSession (site* oldSessionName* newSessionName* ) Renames the session of the given site.
setActiveSession (site* session* ) Sets the given session as active for the given site.
setDefaultSessionTokenEnabled (sessionToken* tokenEnabled* ) Sets whether or not the default session token with the given name is enabled.
setSessionTokenValue (site* session* sessionToken* tokenValue* ) Sets the value of the session token of the given session for the given site.
unsetActiveSession (site* ) Unsets the active session of the given site.