PHP Class CI_Session_driver, TastyIgniter

Inheritance: implements SessionHandlerInterface
Afficher le fichier Open project: tastyigniter/tastyigniter Class Usage Examples

Protected Properties

Свойство 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.

Méthodes publiques

Méthode Description
__construct ( array &$params ) : void Class constructor

Méthodes protégées

Méthode 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 méthode

Class constructor
public __construct ( array &$params ) : void
$params array Configuration parameters
Résultat void

_fail() protected méthode

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
Résultat mixed

_get_lock() protected méthode

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
Résultat boolean

_release_lock() protected méthode

Release lock
protected _release_lock ( ) : boolean
Résultat 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
Résultat boolean

$_lock protected_oe property

Lock placeholder
protected mixed $_lock
Résultat 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
Résultat 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