\Yesf\HttpSession

Summary

Methods
Properties
Constants
generateId()
__construct()
id()
has()
get()
set()
delete()
clear()
encode()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$id
$sess
N/A

Properties

$id

$id : string

Type

string — Session ID

$sess

$sess : array

Type

array — Session content

Methods

generateId()

generateId() : string

Generate session id Notice this function didn't check is this id already use or not

Returns

string

__construct()

__construct(string  $id, string  $sess = null) 

Constructor

Parameters

string $id

Session ID

string $sess

Saved session content

id()

id() 

has()

has(  $offset) 

Parameters

$offset

get()

get(  $offset) 

Parameters

$offset

set()

set(  $offset,   $value) 

Parameters

$offset
$value

delete()

delete(  $offset) 

Parameters

$offset

clear()

clear() 

encode()

encode() 

offsetExists()

offsetExists(  $offset) 

ArrayAccess

Parameters

$offset

offsetGet()

offsetGet(  $offset) 

Parameters

$offset

offsetSet()

offsetSet(  $offset,   $value) 

Parameters

$offset
$value

offsetUnset()

offsetUnset(  $offset) 

Parameters

$offset