Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
core\session\file Class Reference

File based session handler. More...

Inheritance diagram for core\session\file:
core\session\handler

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
 

Detailed Description

File based session handler.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ kill_session()

core\session\file::kill_session (   $sid)

Kill one session, the session record is removed afterwards.

Parameters
string$sid

Reimplemented from core\session\handler.

◆ session_exists()

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.

Parameters
string$sid
Return values
booltrue if session found.

Reimplemented from core\session\handler.

◆ start()

core\session\handler::start ( )
inherited

Start the session.

Return values
boolsuccess

Reimplemented in core\session\redis, and core\session\memcached.


The documentation for this class was generated from the following file: