\Session

Session Class

Aceesible as an array

Summary

Methods
Properties
Constants
__construct()
__get()
__set()
__unset()
__isset()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
count()
start()
destroy()
restart()
get_csrf_token()
is_csrf_protected()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\string  $name = 'frananas', \int  $timeout = 3600) 

Parameters

\string $name
\int $timeout

__get()

__get(\string  $name) 

Parameters

\string $name

__set()

__set(\string  $name,   $value) 

Parameters

\string $name
$value

__unset()

__unset(\string  $name) 

Parameters

\string $name

__isset()

__isset(\string  $name) 

Parameters

\string $name

offsetExists()

offsetExists(  $offset) 

Parameters

$offset

offsetGet()

offsetGet(  $offset) 

Parameters

$offset

offsetSet()

offsetSet(  $offset,   $value) 

Parameters

$offset
$value

offsetUnset()

offsetUnset(  $offset) 

Parameters

$offset

count()

count() 

start()

start() 

destroy()

destroy() 

restart()

restart() 

Destroy then start the session

get_csrf_token()

get_csrf_token() 

Get Session CSRF token

return string

is_csrf_protected()

is_csrf_protected(  $token = "") 

Check if CSRF token exist is wright

Parameters

$token

token to compare to