ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:session:reference:expirenotify

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.txt · Last modified: 2018/07/01 22:02 by peterdd