Sessions
PHP Manual

The SessionHandlerInterface class

(PHP 5 >= 5.4.0)

Introduction

SessionHandlerInterface is an interface which defines a prototype for creating a custom session handler. In order to pass a custom session handler to session_set_save_handler() using its OOP invocation, the class must implement this interface.

Class synopsis

SessionHandlerInterface {
/* Methods */
abstract public bool close ( void )
abstract public bool destroy ( string $session_id )
abstract public bool gc ( string $maxlifetime )
abstract public bool open ( string $save_path , string $session_id )
abstract public string read ( string $session_id )
abstract public bool write ( string $session_id , string $session_data )
}

Table of Contents


Sessions
PHP Manual