PHP 클래스 CI_Session_files_driver, TastyIgniter

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

보호된 프로퍼티들

프로퍼티 타입 설명
$_file_handle resource File handle
$_file_new boolean File new flag
$_file_path resource File name
$_save_path string Save path

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

close() 공개 메소드

Releases locks and closes file descriptor.
public close ( ) : boolean
리턴 boolean

destroy() 공개 메소드

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

gc() 공개 메소드

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

open() 공개 메소드

Sanitizes the save_path directory.
public open ( string $save_path, string $name ) : boolean
$save_path string Path to session files' directory
$name string Session cookie name
리턴 boolean

read() 공개 메소드

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

write() 공개 메소드

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
리턴 boolean

프로퍼티 상세

$_file_handle 보호되어 있는 프로퍼티

File handle
protected resource $_file_handle
리턴 resource

$_file_new 보호되어 있는 프로퍼티

File new flag
protected bool $_file_new
리턴 boolean

$_file_path 보호되어 있는 프로퍼티

File name
protected resource $_file_path
리턴 resource

$_save_path 보호되어 있는 프로퍼티

Save path
protected string $_save_path
리턴 string