SessionManager

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

final
since

4.0.0

package

Application

Methods

__construct

SessionManager constructor.

__construct(\SessionHandlerInterface sessionHandler) : mixed
since

4.0.0

Arguments

sessionHandler

\SessionHandlerInterfaceSession handler.

Response

mixed

destroySession

Destroys the given session ID.

destroySession(string sessionId) : bool
since

4.0.0

Arguments

sessionId

stringThe session ID to destroy.

Response

bool

destroySessions

Destroys the given session IDs.

destroySessions(string[] sessionIds) : bool
since

4.0.0

Arguments

sessionIds

string[]The session IDs to destroy.

Response

bool

Properties

sessionHandler

Session handler.

since

4.0.0

Type(s)

\SessionHandlerInterface