v5:session:reference:expirenotify
This is an old revision of the document!
ADOdb_Session::expireNotify
Syntax
string ADOdb_Session::expireNotify( optional string $functionName )
Description
The static method expireNotify sets or gets the name of the Garbage Collector (gc) function on the session connection. If defined, the function is executed each time a session expires.
The value must be set before config() is called
Use As A Getter
When used without parameters it returns the currently set value
Usage
function gcCleanup(){} include_once 'adodb/adodb.inc.php'; include_once "adodb/session/adodb-session2.php"; ADOdb_session::expireNotify('gcCleanup'); ADOdb_session::config('oci8',$host,$user,$pass,$database);
v5/session/reference/expirenotify.1463846740.txt.gz · Last modified: 2017/04/21 11:38 (external edit)