Session
in package
Class Session
Table of Contents
- getArrVal() : mixed
- Reads $_SESSION[$arr][$key]
- getUser() : array<string|int, mixed>
- getUserVal() : mixed
- Reads $_SESSION['saUser'][$key]
- getVal() : mixed
- Reads $_SESSION[$key] $key "*" returns complete $_SESSION
- isKey() : mixed
- Reads $_SESSION[$key]
- isUser() : int|bool
- setArrVal() : void
- Writes $_SESSION[$arr][$key] = $val;
- setUserVal() : void
- Get a value of $_SESSION['saUser'][$key]
- setVal() : void
- Writes $_SESSION[$key] = $val;
- unsetArrVal() : void
- unset($_SESSION[$arr][$key])
- unsetVal() : void
- unset($_SESSION[$key])
Methods
getArrVal()
Reads $_SESSION[$arr][$key]
public
static getArrVal(string $arr, string $key) : mixed
Parameters
- $arr : string
- $key : string
Return values
mixed —getUser()
public
static getUser() : array<string|int, mixed>
Return values
array<string|int, mixed> —getUserVal()
Reads $_SESSION['saUser'][$key]
public
static getUserVal( $key) : mixed
Parameters
Return values
mixed —getVal()
Reads $_SESSION[$key] $key "*" returns complete $_SESSION
public
static getVal(string $key) : mixed
Parameters
- $key : string
Return values
mixed —isKey()
Reads $_SESSION[$key]
public
static isKey( $key) : mixed
Parameters
Return values
mixed —isUser()
public
static isUser() : int|bool
Return values
int|bool —setArrVal()
Writes $_SESSION[$arr][$key] = $val;
public
static setArrVal(string $arr, string $key, $val) : void
Parameters
Return values
void —setUserVal()
Get a value of $_SESSION['saUser'][$key]
public
static setUserVal( $key, $val) : void
Parameters
Return values
void —setVal()
Writes $_SESSION[$key] = $val;
public
static setVal( $key, $val) : void
Parameters
Return values
void —unsetArrVal()
unset($_SESSION[$arr][$key])
public
static unsetArrVal(string $arr, string $key) : void
Parameters
- $arr : string
- $key : string
Return values
void —unsetVal()
unset($_SESSION[$key])
public
static unsetVal(string $key) : void
Parameters
- $key : string