DatabaseHandler
class DatabaseHandler extends AbstractHandler (View source)
Database session storage handler for PHP
Methods
Re-initializes existing session, or creates a new one.
Closes the current session.
Read the data for a particular session identifier from the SessionHandler backend.
Write session data to the SessionHandler backend.
Destroy the data for a particular session identifier in the SessionHandler backend.
Garbage collect stale sessions from the SessionHandler backend.
isSupported
Details
at line line 36
__construct(AbstractDatabaseAdapter $db)
Constructor
in AbstractHandler at line line 40
mixed
register()
register
at line line 49
bool
open(string $savePath, string $sessionName)
Re-initializes existing session, or creates a new one.
at line line 59
bool
close()
Closes the current session.
at line line 74
string
read(string $id)
Read the data for a particular session identifier from the SessionHandler backend.
at line line 97
bool
write(string $id, string $data)
Write session data to the SessionHandler backend.
at line line 119
bool
destroy(int $id)
Destroy the data for a particular session identifier in the SessionHandler backend.
at line line 141
bool
gc(integer $lifetime = 1440)
Garbage collect stale sessions from the SessionHandler backend.
at line line 161
static boolean
isSupported()
isSupported