Class to provide native php session storage
| package |
Framework |
|---|---|
| subpackage |
Core |
| author |
Thomas Bruederli roundcube@gmail.com |
| author |
Aleksander Machniak alec@alec.pl |
| author |
Cor Bosman cor@roundcu.be |
__construct(Object $config)
Object
_fixvars( $vars, $oldvars)
append( $path, $key, $value)
Warning: Do not use if you already modified $_SESSION in the same request (#1490608)
check_auth() : boolean
booleanTrue if valid, False if not
close()
create( $data) : string
stringSession identifier (on success)
destroy( $key)
factory(object $config) : Object
object
Objectrcube_session
gc( $maxlifetime)
gc_shutdown()
get_cache(string $key) : string
stringSession ID
string
get_ip()
get_node( $path, &$data_arr)
e.g. ['compose','attachments'] will return $_SESSION['compose']['attachments']
kill()
log( $line)
open( $save_path, $session_name)
read( $key)
regenerate_id(boolean $destroy = true) : boolean
booleanIf enabled the current session will be destroyed
boolean
register_gc_handler( $func)
register_session_handler()
reload()
remove( $var = null) : boolean
booleanTrue on success
serialize( $vars)
sess_write( $key, $vars) : boolean
boolean
set_ip_check( $check)
set_lifetime( $lifetime)
set_secret( $secret = null)
start()
unserialize( $str)
update( $key, $newvars, $oldvars)
write( $key, $vars)
write_close()
config :
key :
ip :
changed :
start :
vars :
now :
time_diff :
reloaded :
appends :
unsets :
gc_enabled :
gc_handlers :
ip_check :
logging :
nowrite : boolean
Can be used if write-race conditions are to be expected
| var |
|---|
boolean