PHP Class CI_Session_driver, TastyIgniter

Inheritance: implements SessionHandlerInterface
ファイルを表示 Open project: tastyigniter/tastyigniter Class Usage Examples

Protected Properties

Property Type Description
$_config
$_failure Necessary due to a bug in all PHP 5 versions where return values from userspace handlers are not handled properly. PHP 7 fixes the bug, so we need to return different values depending on the version.
$_fingerprint boolean Data fingerprint
$_lock mixed Lock placeholder
$_session_id string Used to detect session_regenerate_id() calls because PHP only calls write() after regenerating the ID.
$_success Necessary due to a bug in all PHP 5 versions where return values from userspace handlers are not handled properly. PHP 7 fixes the bug, so we need to return different values depending on the version.

Public Methods

Method Description
__construct ( array &$params ) : void Class constructor

Protected Methods

Method Description
_cookie_destroy ( ) : boolean Cookie destroy
_fail ( ) : mixed Fail
_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

_fail() protected method

Drivers other than the 'files' one don't (need to) use the session.save_path INI setting, but that leads to confusing error messages emitted by PHP when open() or write() fail, as the message contains session.save_path ... To work around the problem, the drivers will call this method so that the INI is set just in time for the error message to be properly generated.
protected _fail ( ) : mixed
return mixed

_get_lock() protected method

A dummy method allowing drivers with no locking functionality (databases other than PostgreSQL and MySQL) to act as if they do acquire a lock.
protected _get_lock ( string $session_id ) : boolean
$session_id string
return boolean

_release_lock() protected method

Release lock
protected _release_lock ( ) : boolean
return boolean

Property Details

$_config protected_oe property

protected $_config

$_failure protected_oe property

Necessary due to a bug in all PHP 5 versions where return values from userspace handlers are not handled properly. PHP 7 fixes the bug, so we need to return different values depending on the version.
See also: https://wiki.php.net/rfc/session.user.return-value
protected $_failure

$_fingerprint protected_oe property

Data fingerprint
protected bool $_fingerprint
return boolean

$_lock protected_oe property

Lock placeholder
protected mixed $_lock
return mixed

$_session_id protected_oe property

Used to detect session_regenerate_id() calls because PHP only calls write() after regenerating the ID.
protected string $_session_id
return string

$_success protected_oe property

Necessary due to a bug in all PHP 5 versions where return values from userspace handlers are not handled properly. PHP 7 fixes the bug, so we need to return different values depending on the version.
See also: https://wiki.php.net/rfc/session.user.return-value
protected $_success