SessionInterface

SessionInterface

interface SessionInterface

Interface for the session.

Methods

bool start()

Starts the session storage.

string getId()

Returns the session ID.

setId(string $id)

Sets the session ID.

mixed getName()

Returns the session name.

setName(string $name)

Sets the session name.

bool invalidate(int $lifetime = null)

Invalidates the current session.

bool