Fat-Free Framework
3.2.1
|
Jig-managed session handler. More...
Public Member Functions | |
open ($path, $name) | |
close () | |
read ($id) | |
write ($id, $data) | |
destroy ($id) | |
cleanup ($max) | |
csrf ($id=NULL) | |
ip ($id=NULL) | |
stamp ($id=NULL) | |
agent ($id=NULL) | |
__construct (\DB\Jig $db, $table='sessions') | |
![]() | |
exists ($key) | |
set ($key, $val) | |
get ($key) | |
clear ($key) | |
cast ($obj=NULL) | |
token ($str) | |
find ($filter=NULL, array $options=NULL, $ttl=0, $log=TRUE) | |
count ($filter=NULL, $ttl=0) | |
skip ($ofs=1) | |
insert () | |
update () | |
erase ($filter=NULL) | |
reset () | |
copyfrom ($key, $func=NULL) | |
copyto ($key) | |
fields () | |
__construct (\DB\Jig $db, $file) | |
![]() | |
cast ($obj=NULL) | |
find ($filter=NULL, array $options=NULL, $ttl=0) | |
count ($filter=NULL, $ttl=0) | |
insert () | |
update () | |
copyfrom ($key, $func=NULL) | |
copyto ($key) | |
dry () | |
findone ($filter=NULL, array $options=NULL, $ttl=0) | |
paginate ($pos=0, $size=10, $filter=NULL, array $options=NULL) | |
load ($filter=NULL, array $options=NULL, $ttl=0) | |
first () | |
last () | |
skip ($ofs=1) | |
next () | |
prev () | |
save () | |
erase () | |
onload ($func) | |
oninsert ($func) | |
onupdate ($func) | |
onerase ($func) | |
reset () | |
![]() | |
exists ($key) | |
set ($key, $val) | |
get ($key) | |
clear ($key) | |
offsetexists ($key) | |
__isset ($key) | |
offsetset ($key, $val) | |
__set ($key, $val) | |
offsetget ($key) | |
__get ($key) | |
offsetunset ($key) | |
__unset ($key) | |
Additional Inherited Members | |
![]() | |
$file | |
Data file. | |
$id | |
Document identifier. | |
$document =array() | |
Document contents. | |
![]() | |
$ptr =0 | |
Current position. | |
$trigger =array() | |
Event listeners. | |
const | E_Field ='Undefined field %s' |
![]() | |
factory ($id, $row) | |
![]() | |
$db | |
Flat-file DB wrapper. | |
![]() | |
$query =array() | |
Query results. | |
Jig-managed session handler.
DB\Jig\Session::__construct | ( | \DB\Jig | $db, |
$table = 'sessions' |
|||
) |
Instantiate class
$db | object |
$table | string |
DB\Jig\Session::agent | ( | $id = NULL | ) |
Return HTTP user agent associated with specified session ID
$id | string |
DB\Jig\Session::cleanup | ( | $max | ) |
Garbage collector
$max | int |
DB\Jig\Session::close | ( | ) |
Close session
DB\Jig\Session::csrf | ( | $id = NULL | ) |
Return anti-CSRF tokan associated with specified session ID
$id | string |
DB\Jig\Session::destroy | ( | $id | ) |
Destroy session
$id | string |
DB\Jig\Session::ip | ( | $id = NULL | ) |
Return IP address associated with specified session ID
$id | string |
DB\Jig\Session::open | ( | $path, | |
$name | |||
) |
Open session
$path | string |
$name | string |
DB\Jig\Session::read | ( | $id | ) |
Return session data in serialized format
$id | string |
DB\Jig\Session::stamp | ( | $id = NULL | ) |
Return Unix timestamp associated with specified session ID
$id | string |
DB\Jig\Session::write | ( | $id, | |
$data | |||
) |
Write session data
$id | string |
$data | string |