class DatabaseDriver implements SessionHandlerInterface (View source)

Traits

Methods

__construct(array $options, string $ip)

Database constructor

bool
close()

Close the session handling

bool
destroy(string $session_id)

Destroy session information

bool
gc(int $max_lifetime)

Garbage collector for cleans old sessions

bool
open(string $save_path, string $name)

When the session start

string
read(string $session_id)

Read the session information

bool
write(string $session_id, string $session_data)

Write session information

Details

__construct(array $options, string $ip)

Database constructor

Parameters

array $options
string $ip

bool close()

Close the session handling

Return Value

bool

bool destroy(string $session_id)

Destroy session information

Parameters

string $session_id

Return Value

bool

bool gc(int $max_lifetime)

Garbage collector for cleans old sessions

Parameters

int $max_lifetime

Return Value

bool

bool open(string $save_path, string $name)

When the session start

Parameters

string $save_path
string $name

Return Value

bool

string read(string $session_id)

Read the session information

Parameters

string $session_id

Return Value

string

bool write(string $session_id, string $session_data)

Write session information

Parameters

string $session_id
string $session_data

Return Value

bool