Elgg  Version 6.2
Public Member Functions | Public Attributes | List of all members
Elgg\Database\SessionHandler Class Reference

Database session handler. More...

Inheritance diagram for Elgg\Database\SessionHandler:

Public Member Functions

 __construct (protected Database $db)
 Constructor. More...
 
 open ($path, $name)
 
 read ($id)
 
 write ($id, $data)
 
 close ()
 
 destroy ($id)
 
 gc ($max_lifetime)
 

Public Attributes

const TABLE_NAME = 'users_sessions'
 

Detailed Description

Database session handler.

Definition at line 15 of file SessionHandler.php.

Constructor & Destructor Documentation

◆ __construct()

Elgg\Database\SessionHandler::__construct ( protected Database  $db)

Constructor.

Parameters
Database$dbThe database

Definition at line 29 of file SessionHandler.php.

Member Function Documentation

◆ close()

Elgg\Database\SessionHandler::close ( )

Definition at line 100 of file SessionHandler.php.

◆ destroy()

Elgg\Database\SessionHandler::destroy (   $id)

Definition at line 108 of file SessionHandler.php.

◆ gc()

Elgg\Database\SessionHandler::gc (   $max_lifetime)

Definition at line 121 of file SessionHandler.php.

◆ open()

Elgg\Database\SessionHandler::open (   $path,
  $name 
)

Definition at line 36 of file SessionHandler.php.

◆ read()

Elgg\Database\SessionHandler::read (   $id)

Definition at line 44 of file SessionHandler.php.

◆ write()

Elgg\Database\SessionHandler::write (   $id,
  $data 
)

Definition at line 58 of file SessionHandler.php.

Member Data Documentation

◆ TABLE_NAME

const Elgg\Database\SessionHandler::TABLE_NAME = 'users_sessions'

Definition at line 22 of file SessionHandler.php.


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