PHP 클래스 CI_Session_driver, TastyIgniter

상속: implements SessionHandlerInterface
파일 보기 프로젝트 열기: tastyigniter/tastyigniter 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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