WIKINDX API trunk

WkxDbSessionHandler
in package
implements SessionHandlerInterface, SessionIdInterface, SessionUpdateTimestampHandlerInterface

Custom session handler used when the session is stored inside db

WARNING: NEVER DUPLICATE THIS CODE.

This code is called by PHP's internal session management mechanism. The 'session' table should not be manipulated through direct database access anywhere other than this special class.

The only exception is the UPDATEDATABASE update class, which starts its own PHP session stored in a file, not in this table. This allows for maintenance operations during installations and updates.

Tags
see
https://www.php.net/manual/en/class.sessionhandlerinterface.php

Table of Contents

Interfaces

SessionHandlerInterface
SessionIdInterface
SessionUpdateTimestampHandlerInterface

Methods

close()  : bool
Close the session
create_sid()  : string
Creates a new session ID
destroy()  : bool
Destroy a session
gc()  : int|false
Cleanup old sessions
open()  : bool
Initialize session
read()  : string|false
Read session data
updateTimestamp()  : bool
Updates the last modification timestamp of the session
validateId()  : bool
Validates a given session ID
write()  : bool
Write session data

Methods


        
On this page

Search results