Session adapter.
Constructor.
NULL
public function __construct()
{
$this->maxLifetime = ini_get('session.gc_maxlifetime');
}
Session "constructor".
| Type | Description |
|---|---|
| string | Save path |
| string | Session name |
boolean
public function open($savePath, $sessionName)
{
$this->sessionName = $sessionName;
return true;
}
Session "destructor".
boolean
public function close()
{
return true;
}
Garbage collector.
| Type | Description |
|---|---|
| int | Lifetime in secods |
boolean
public function gc($maxLifetime)
{
return true;
}
NULL
abstract public function read($id);
NULL
abstract public function write($id, $data);
NULL
abstract public function destroy($id);