PHP Класс CI_Session_driver, TastyIgniter

Автор: Andrey Andreev
Наследование: implements SessionHandlerInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_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.

Открытые методы

Метод Описание
__construct ( array &$params ) : void Class constructor

Защищенные методы

Метод Описание
_cookie_destroy ( ) : boolean Cookie destroy
_fail ( ) : mixed Fail
_get_lock ( string $session_id ) : boolean Get lock
_release_lock ( ) : boolean Release lock

Описание методов

__construct() публичный Метод

Class constructor
public __construct ( array &$params ) : void
$params array Configuration parameters
Результат void

_fail() защищенный Метод

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
Результат mixed

_get_lock() защищенный Метод

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
Результат boolean

_release_lock() защищенный Метод

Release lock
protected _release_lock ( ) : boolean
Результат boolean

Описание свойств

$_config защищенное свойство

protected $_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.
См. также: https://wiki.php.net/rfc/session.user.return-value
protected $_failure

$_fingerprint защищенное свойство

Data fingerprint
protected bool $_fingerprint
Результат boolean

$_lock защищенное свойство

Lock placeholder
protected mixed $_lock
Результат mixed

$_session_id защищенное свойство

Used to detect session_regenerate_id() calls because PHP only calls write() after regenerating the ID.
protected string $_session_id
Результат string

$_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.
См. также: https://wiki.php.net/rfc/session.user.return-value
protected $_success