class HybridSessionStore_Database extends HybridSessionStore_Base (View source)

Properties

protected string $key

Session secret key

from  HybridSessionStore_Base

Methods

public
setKey(string $key)

Assign a new session secret key

protected
string
getKey()

Get the session secret key

protected
int
getLifetime()

Get lifetime in number of seconds

protected
int
getNow()

Gets the current unix timestamp

protected
bool
isDatabaseReady()

Determine if the DB is ready to use.

public
open($save_path, $name)

No description

public
close()

No description

public
read($session_id)

No description

public
write($session_id, $session_data)

No description

public
destroy($session_id)

No description

public
gc($maxlifetime)

No description

Details

setKey(string $key)

Assign a new session secret key

Parameters

string $key

protected string getKey()

Get the session secret key

Return Value

string

protected int getLifetime()

Get lifetime in number of seconds

Return Value

int

protected int getNow()

Gets the current unix timestamp

Return Value

int

protected bool isDatabaseReady()

Determine if the DB is ready to use.

Return Value

bool

Exceptions

Exception

open($save_path, $name)

No description

Parameters

$save_path
$name

close()

No description

read($session_id)

No description

Parameters

$session_id

write($session_id, $session_data)

No description

Parameters

$session_id
$session_data

destroy($session_id)

No description

Parameters

$session_id

gc($maxlifetime)

No description

Parameters

$maxlifetime