Session
class Session
Class Session
Methods
Session constructor.
Sets is_dirty flag to 0
Clear the passed Session key
Call session_write_close function
Destroys the current session and starts a fresh session
Get the value for the passed key. The value can be stored using set() and is available until the user session is destroyed
Returns a List of User IDs having a Session
Returns information about the current session handler
Returns the current, cleaned Session ID
Returns true if the current session is marked as dirty
Logout specific users(Destroys a specific Session)
sets is_dirty flag for session(s) of given user_id (or array of ids) if user id is false, current user id is used
Sets is_dirty flag for all sessions assigned to users within $groups
Validate session id
Set and save a key-value in the current users session. This value is stored until the session is destroyed (end of user session)
Modify the session lifetime for the current session if possible It is currently NOT possible to set lifetime for REDIS Session Handler with this method as REDIS requires setting the
Register as session handler and start session Session can only be started ONCE per request
Details
at line 63
__construct(bool $db = false)
Session constructor.
at line 481
mixed
clean_session()
Sets is_dirty flag to 0
at line 362
clear($key)
Clear the passed Session key
at line 74
close()
Call session_write_close function
at line 370
destroy()
Destroys the current session and starts a fresh session
at line 297
bool|mixed|string
get($key)
Get the value for the passed key. The value can be stored using set() and is available until the user session is destroyed
at line 527
array
get_current_sessions()
Returns a List of User IDs having a Session
at line 392
array
get_session_handler_info()
Returns information about the current session handler
at line 251
string
get_session_id()
Returns the current, cleaned Session ID
at line 263
bool
is_dirty()
Returns true if the current session is marked as dirty
at line 539
logout_user($user_ids)
Logout specific users(Destroys a specific Session)
at line 409
pollute_session(bool|array $user_ids = false, $invalidate_policy_clusters = true)
sets is_dirty flag for session(s) of given user_id (or array of ids) if user id is false, current user id is used
at line 445
pollute_session_for_groups(array $groups = array(), int $group_security_id = 0, $invalidate_policy_clusters = true)
Sets is_dirty flag for all sessions assigned to users within $groups
at line 383
bool
session_valid_id($session_id)
Validate session id
at line 327
set(string $key, mixed $value)
Set and save a key-value in the current users session. This value is stored until the session is destroyed (end of user session)
at line 283
set_lifetime(int $life_time)
Modify the session lifetime for the current session if possible It is currently NOT possible to set lifetime for REDIS Session Handler with this method as REDIS requires setting the
at line 85
start($use_fallback_handler = false)
Register as session handler and start session Session can only be started ONCE per request