Default constructor
rcube_session
__construct
( $db, $config)
Append the given value to the certain node in the session data array
void
append
(string $path, string $key, mixed $value)
-
string
$path: Path denoting the session variable where to append the value
-
string
$key: Key name under which to append the new value (use null for appending to an indexed list)
-
mixed
$value: Value to append to the session data array
Check session authentication cookie
boolean
check_auth
()
Handler for session_destroy()
boolean
db_destroy
(string $key)
Garbage collecting function
boolean
db_gc
(string $maxlifetime)
-
string
$maxlifetime: Session lifetime in seconds
Read session data from database
string
db_read
(string $key)
Save session data.
handler for session_read()
boolean
db_write
(string $key, string $vars)
-
string
$key: Session ID
-
string
$vars: Serialized session vars
Delete session data for the given key
void
destroy
(string $key)
Execute registered garbage collector routines
void
gc
()
Getter for remote IP saved with this session
void
get_ip
()
Kill this session
void
kill
()
Writes debug information to the log
void
log
( $line)
Handler for session_destroy() with memcache backend
boolean
mc_destroy
(string $key)
Read session data from memcache
string
mc_read
(string $key)
Save session data.
handler for session_read()
boolean
mc_write
(string $key, string $vars)
-
string
$key: Session ID
-
string
$vars: Serialized session vars
void
open
( $save_path, $session_name)
Generate and set new session id
void
regenerate_id
([boolean $destroy = true])
-
boolean
$destroy: If enabled the current session will be destroyed
Register additional garbage collector functions
void
register_gc_handler
(mixed $func)
-
mixed
$func: Callback function
Re-read session data from storage backend
void
reload
()
Unset a session variable
boolean
remove
([string $var = null])
-
string
$var: Variable name (can be a path denoting a certain node in the session array, e.g. compose.attachments.5)
Set session authentication cookie
void
set_auth_cookie
()
Setter for the cookie name used for session cookie
void
set_cookiename
( $cookiename)
Enable/disable IP check
void
set_ip_check
( $check)
Setter for session lifetime
void
set_lifetime
( $lifetime)
Setter for cookie encryption secret
void
set_secret
( $secret)
Create session cookie from session data
void
_mkcookie
(int $timeslot)
-
int
$timeslot: Time slot to use