SessionModelInterface
in
Session management model interface.
Table of Contents
Methods
- get() : stdClass|string
- Get session.
- isset() : bool
- Isset session.
- set() : string
- Set session.
- unset() : string
- Session discarded.
Methods
get()
Get session.
public
static get([string $field = null ]) : stdClass|string
Parameters
- $field : string = null
-
(optional) If you want to retrieve only a specific field from the session, specify the name of that field.
Return values
stdClass|string —Session data.
isset()
Isset session.
public
static isset() : bool
Return values
bool —Whether the session exists.
set()
Set session.
public
static set(string $id[, mixed $value = null ]) : string
Parameters
- $id : string
-
It is ID if there is only one argument, column name if there are two arguments.
- $value : mixed = null
-
Set value.
Return values
string —Subclass Name.
unset()
Session discarded.
public
static unset() : string
Return values
string —Subclass Name.