SessionManager

Manager for interacting with the session handler to perform updates on sessions.

final
since

4.0.0

Methods

__construct

SessionManager constructor.

__construct(\SessionHandlerInterface $sessionHandler) 
since

4.0.0

Arguments

$sessionHandler

\SessionHandlerInterfaceSession handler.

destroySession

Destroys the given session ID.

destroySession(string $sessionId) : boolean
since

4.0.0

Arguments

$sessionId

stringThe session ID to destroy.

Response

boolean

destroySessions

Destroys the given session IDs.

destroySessions(array<mixed,string> $sessionIds) : boolean
since

4.0.0

Arguments

$sessionIds

array<mixed,string>The session IDs to destroy.

Response

boolean

Properties

sessionHandler

Session handler.

since

4.0.0

Type(s)

\SessionHandlerInterface