SessionInterface
in
Session handler
Table of Contents
- destroy() : void
- Destroys the session
- get() : mixed
- Returns with a session value by name or default
- id() : string
- Returns the session ID
- set() : void
- Sets a session variable
Methods
destroy()
Destroys the session
public
destroy() : void
Return values
void —get()
Returns with a session value by name or default
public
get(string $name[, mixed $default = null ]) : mixed
Parameters
- $name : string
- $default : mixed = null
Return values
mixed —id()
Returns the session ID
public
id() : string
Return values
string —set()
Sets a session variable
public
set(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed