SqlSessionHandler
class SqlSessionHandler implements SessionHandlerInterface, SessionDirtyFlagStorageInterface, SessionManagementInterface
Class sql_session_handler
Properties
| int | $life_time |
Methods
Marks the session for the givven session_id as clean
Closes the current session
Connect the Session Storage Handler and register via session_set_save_handler
No description
Garbage Collector to remove old Sessions (called based on session.gc_probability)
Returns an array with current (unexpired) user sessions containing at least the fields SESSION_ID, USER_ID More fields are possible but not required (depends on session handler)
Dirty?
Logsout all current user sessions (Destroys ALL sessions)
Logout specific users(Destroys a specific Session)
No description
Marks the session for the given user_id as dirty
Read the passed session and returns the stored data
No description
Details
at line 54
__construct(Session $xf_session, $db)
sql_session_handler constructor.
at line 339
mixed
clean_user_session($session_id)
Marks the session for the givven session_id as clean
at line 81
bool
close()
Closes the current session
at line 383
bool
connect()
Connect the Session Storage Handler and register via session_set_save_handler
at line 295
bool
destroy($session_id)
No description
at line 305
bool
gc(int $maxlifetime)
Garbage Collector to remove old Sessions (called based on session.gc_probability)
at line 374
array
get_current_sessions()
Returns an array with current (unexpired) user sessions containing at least the fields SESSION_ID, USER_ID More fields are possible but not required (depends on session handler)
at line 60
bool
is_dirty()
Dirty?
at line 351
logout_all_users()
Logsout all current user sessions (Destroys ALL sessions)
at line 360
logout_user($user_ids)
Logout specific users(Destroys a specific Session)
at line 73
bool
open(string $save_path, string $session_name)
No description
at line 326
pollute_user_session($user_ids)
Marks the session for the given user_id as dirty
at line 93
string
read($session_id)
Read the passed session and returns the stored data
at line 143
bool
write($session_id, $session_data)
No description