Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
File based session handler. More...
Public Member Functions | |
__construct () | |
Create new instance of handler. | |
init () | |
Init session handler. | |
kill_all_sessions () | |
Kill all active sessions, the core sessions table is purged afterwards. | |
kill_session ($sid) | |
Kill one session, the session record is removed afterwards. More... | |
session_exists ($sid) | |
Check the backend contains data for this session id. More... | |
start () | |
Start the session. More... | |
Protected Attributes | |
string | $sessiondir |
session dir | |
File based session handler.
core\session\file::kill_session | ( | $sid | ) |
Kill one session, the session record is removed afterwards.
string | $sid |
Reimplemented from core\session\handler.
core\session\file::session_exists | ( | $sid | ) |
Check the backend contains data for this session id.
Note: this is intended to be called from manager::session_exists() only.
string | $sid |
bool | true if session found. |
Reimplemented from core\session\handler.
|
inherited |
Start the session.
bool | success |
Reimplemented in core\session\redis, and core\session\memcached.