SessionProviderInterface
An interface that describes the use of sessions.
Tags
Table of Contents
- delete() : void
- Deletes the value provided at that key in the session.
- destroy() : void
- Destroys the current session.
- get() : mixed
- Get the key value from the session. Returns false if nothing is found.
- getID() : string
- Get the current session ID if available.
- init() : void
- Starts a new session, or resumes an existing session if there is already a session ID available.
- set() : void
- Stores the value provided at that key in the session.
Methods
delete()
Deletes the value provided at that key in the session.
public
delete(string $key) : void
Parameters
- $key : string
Tags
Return values
void —destroy()
Destroys the current session.
public
destroy() : void
Tags
Return values
void —get()
Get the key value from the session. Returns false if nothing is found.
public
get(string $key) : mixed
Parameters
- $key : string
Tags
Return values
mixed —getID()
Get the current session ID if available.
public
getID() : string
Tags
Return values
string —init()
Starts a new session, or resumes an existing session if there is already a session ID available.
public
init() : void
Tags
Return values
void —set()
Stores the value provided at that key in the session.
public
set(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed