SessionProviderPHP implements SessionProviderInterface
Provides a session handle that stores session data in $_SESSION, the default PHP implementation.
Tags
Interfaces, Classes and Traits
- SessionProviderInterface
- An interface that describes the use of sessions.
Table of Contents
- $logger : Logger
- Trace logger.
- __construct() : mixed
- Constructor.
- 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.
Properties
$logger
Trace logger.
private
static Logger
$logger
= null
Tags
Methods
__construct()
Constructor.
public
__construct() : mixed
Tags
Return values
mixed —delete()
Deletes the value provided at that key in the session.
public
delete(mixed $key) : void
Parameters
- $key : mixed
Return values
void —destroy()
Destroys the current session.
public
destroy() : void
Return values
void —get()
Get the key value from the session. Returns false if nothing is found.
public
get(mixed $key) : mixed
Parameters
- $key : mixed
Return values
mixed —getID()
Get the current session ID if available.
public
getID() : string
Return values
string —init()
Starts a new session, or resumes an existing session if there is already a session ID available.
public
init() : void
Return values
void —set()
Stores the value provided at that key in the session.
public
set(mixed $key, mixed $value) : void
Parameters
- $key : mixed
- $value : mixed