SaveHandler Interface

category Zend
package Zend_Session
see \Zend\Session\SaveHandler\http://php.net/session_set_save_handler

 Methods

Close Session - free resources

close() 

Destroy Session - remove data from resource for given session id

destroy(string $id) 

Parameters

$id

string

Garbage Collection - remove old session data older than $maxlifetime (in seconds)

gc(int $maxlifetime) 

Parameters

$maxlifetime

int

Open Session - retrieve resources

open(string $savePath, string $name) 

Parameters

$savePath

string

$name

string

Read session data

read(string $id) 

Parameters

$id

string

Write Session - commit data to resource

write(string $id, mixed $data) 

Parameters

$id

string

$data

mixed