PHP Class CI_Session_database_driver, TastyIgniter

Inheritance: extends CI_Session_driver, implements SessionHandlerInterface
Datei anzeigen Open project: tastyigniter/tastyigniter

Protected Properties

Property Type Description
$_db object DB object
$_platform string Lock "driver" flag
$_row_exists boolean Row exists flag

Public Methods

Method Description
__construct ( array &$params ) : void Class constructor
close ( ) : boolean Close
destroy ( string $session_id ) : boolean Destroy
gc ( integer $maxlifetime ) : boolean Garbage Collector
open ( string $save_path, string $name ) : boolean Open
read ( string $session_id ) : string Read
write ( string $session_id, string $session_data ) : boolean Write

Protected Methods

Method Description
_get_lock ( string $session_id ) : boolean Get lock
_release_lock ( ) : boolean Release lock

Method Details

__construct() public method

Class constructor
public __construct ( array &$params ) : void
$params array Configuration parameters
return void

_get_lock() protected method

Acquires a lock, depending on the underlying platform.
protected _get_lock ( string $session_id ) : boolean
$session_id string Session ID
return boolean

_release_lock() protected method

Releases a previously acquired lock
protected _release_lock ( ) : boolean
return boolean

close() public method

Releases locks
public close ( ) : boolean
return boolean

destroy() public method

Destroys the current session.
public destroy ( string $session_id ) : boolean
$session_id string Session ID
return boolean

gc() public method

Deletes expired sessions
public gc ( integer $maxlifetime ) : boolean
$maxlifetime integer Maximum lifetime of sessions
return boolean

open() public method

Initializes the database connection
public open ( string $save_path, string $name ) : boolean
$save_path string Table name
$name string Session cookie name, unused
return boolean

read() public method

Reads session data and acquires a lock
public read ( string $session_id ) : string
$session_id string Session ID
return string Serialized session data

write() public method

Writes (create / update) session data
public write ( string $session_id, string $session_data ) : boolean
$session_id string Session ID
$session_data string Serialized session data
return boolean

Property Details

$_db protected_oe property

DB object
protected object $_db
return object

$_platform protected_oe property

Lock "driver" flag
protected string $_platform
return string

$_row_exists protected_oe property

Row exists flag
protected bool $_row_exists
return boolean