PHP Class CI_Session_files_driver, TastyIgniter

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

Protected Properties

Свойство Type Description
$_file_handle resource File handle
$_file_new boolean File new flag
$_file_path resource File name
$_save_path string Save path

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

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

close() public méthode

Releases locks and closes file descriptor.
public close ( ) : boolean
Résultat boolean

destroy() public méthode

Destroys the current session.
public destroy ( string $session_id ) : boolean
$session_id string Session ID
Résultat boolean

gc() public méthode

Deletes expired sessions
public gc ( integer $maxlifetime ) : boolean
$maxlifetime integer Maximum lifetime of sessions
Résultat boolean

open() public méthode

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

read() public méthode

Reads session data and acquires a lock
public read ( string $session_id ) : string
$session_id string Session ID
Résultat string Serialized session data

write() public méthode

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

Property Details

$_file_handle protected_oe property

File handle
protected resource $_file_handle
Résultat resource

$_file_new protected_oe property

File new flag
protected bool $_file_new
Résultat boolean

$_file_path protected_oe property

File name
protected resource $_file_path
Résultat resource

$_save_path protected_oe property

Save path
protected string $_save_path
Résultat string