Session
in package
Session handler
Table of Contents
- __construct() : mixed
- Starts the session (only once)
- destroy() : mixed
- Destroys the session
- get() : mixed|null
- Returns with a session value by name or default
- set() : mixed
- Sets a session variable
Methods
__construct()
Starts the session (only once)
public
__construct() : mixed
Return values
mixed —destroy()
Destroys the session
public
destroy() : mixed
Return values
mixed —get()
Returns with a session value by name or default
public
get(string $name[, mixed|null $default = null ]) : mixed|null
Parameters
- $name : string
-
The name of the session variable
- $default : mixed|null = null
-
The default value if the name does not exist
Return values
mixed|null —The value of the session variable
set()
Sets a session variable
public
set(string $name, mixed $value) : mixed
Parameters
- $name : string
-
The name of the session variable
- $value : mixed
-
The value of the session variable