SessionHandler
        
        extends Base
    
    
            
            in package
            
        
    
    
    
        
            Sessie gegevens 'centraal' opslaan in een database Hierdoor kan een Loadbalancer in 'round robin' mode draaien.
Table of Contents
- $dbLink : string
 - The database link where the session is stored.
 - $table : string
 - De tabel waar de sessie gegevens in worden opgeslagen. (Zal standaard de session_name() als tabelnaam gebruiken).
 - __construct() : mixed
 - Constructor.
 - cleanup() : mixed
 - Garbage collection.
 - destroy() : bool
 - Destroy the session-data for the given $id.
 - init() : mixed
 - Set the session handler to this instance.
 - noop() : bool
 - Callback for $open & $close.
 - read() : string|bool
 - Load session-data based for the given $id.
 - write() : bool
 - Write session-data for the given $id.
 
Properties
$dbLink
The database link where the session is stored.
    private
        string
    $dbLink
     = 'default'
    
    
    
$table
De tabel waar de sessie gegevens in worden opgeslagen. (Zal standaard de session_name() als tabelnaam gebruiken).
    private
        string
    $table
    
    
    
    
Methods
__construct()
Constructor.
    public
                __construct([array<string|int, mixed> $options = [] ]) : mixed
    
        Parameters
- $options : array<string|int, mixed> = []
 - 
                    
Hiermee kun je de "table" en "dbLink" overschrijven
 
Return values
mixed —cleanup()
Garbage collection.
    public
                cleanup(int $maxlifetime) : mixed
    
        Parameters
- $maxlifetime : int
 
Return values
mixed —destroy()
Destroy the session-data for the given $id.
    public
                destroy(string $id) : bool
    
        Parameters
- $id : string
 
Return values
bool —init()
Set the session handler to this instance.
    public
                init() : mixed
    
    
    
        Return values
mixed —noop()
Callback for $open & $close.
    public
                noop() : bool
    
    
    
        Return values
bool —read()
Load session-data based for the given $id.
    public
                read(string $id) : string|bool
    
        Parameters
- $id : string
 - 
                    
session_id
 
Return values
string|bool —write()
Write session-data for the given $id.
    public
                write(string $id, string $gegevens) : bool
    
        Parameters
- $id : string
 - $gegevens : string