Documentation

Session
in package
implements SessionHandlerInterface

Table of Contents

Interfaces

SessionHandlerInterface

Properties

$db  : MySql
$encryption  : Encryption
$options  : array<string|int, mixed>
Session settings
$regenerate_after  : int
$started  : bool

Methods

__construct()  : mixed
close()  : bool
destroy()  : bool
gc()  : int|false
get()  : mixed
open()  : bool
read()  : string|false
regenerate()  : bool
set()  : void
start()  : bool
write()  : bool

Properties

$options

Session settings

private array<string|int, mixed> $options = ['name' => 'w', 'referer_check' => '', 'use_cookies' => 1, 'use_only_cookies' => 1, 'use_trans_sid' => 0, 'use_strict_mode' => 1, 'cookie_lifetime' => 0, 'cookie_path' => '/', 'cookie_domain' => '', 'cookie_secure' => false, 'cookie_httponly' => true, 'save_path' => '', 'gc_probability' => 1, 'gc_divisor' => 1000, 'gc_maxlifetime' => 14400]

$regenerate_after

private int $regenerate_after = 600

$started

private bool $started = false

Methods

close()

public close() : bool
Return values
bool

destroy()

public destroy(string $id) : bool
Parameters
$id : string
Return values
bool

gc()

public gc(int $maxLifetime) : int|false
Parameters
$maxLifetime : int
Return values
int|false

get()

public get([string|null $key = null ]) : mixed
Parameters
$key : string|null = null

open()

public open(string $savePath, string $sessionName) : bool
Parameters
$savePath : string
$sessionName : string
Return values
bool

read()

public read(string $id) : string|false
Parameters
$id : string
Return values
string|false

regenerate()

public regenerate([bool $destroy = false ]) : bool
Parameters
$destroy : bool = false
Return values
bool

set()

public set(string $key, mixed $value) : void
Parameters
$key : string
$value : mixed

start()

public start() : bool
Return values
bool

write()

public write(string $id, string $data) : bool
Parameters
$id : string
$data : string
Return values
bool

        
On this page

Search results