SessionHelper
in package
Read onlyYes
FinalYes
Helper for interacting with session
Table of Contents
Methods
- destroy() : void
- get() : mixed
- has() : bool
- regenerateId() : void
- remove() : void
- set() : void
- setWithFingerprint() : void
- start() : void
- validateFingerprint() : bool
Methods
destroy()
public
static destroy() : void
get()
public
static get(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
has()
public
static has(string $key) : bool
Parameters
- $key : string
Return values
boolregenerateId()
public
static regenerateId([bool $deleteOldSession = true ]) : void
Parameters
- $deleteOldSession : bool = true
remove()
public
static remove(string $key) : void
Parameters
- $key : string
set()
public
static set(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
setWithFingerprint()
public
static setWithFingerprint(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
start()
public
static start() : void
validateFingerprint()
public
static validateFingerprint() : bool