XOOPS  2.6.0
Xoops\Core\Session\Handler Class Reference
Inheritance diagram for Xoops\Core\Session\Handler:
Inheritance graph

Public Member Functions

 __construct ()
 
 close ()
 
 destroy ($session_id)
 
 gc ($maxlifetime)
 
 open ($save_path, $name)
 
 read ($session_id)
 
 write ($session_id, $session_data)
 

Private Attributes

 $db
 
 $sessionTable = 'system_session'
 

Detailed Description

Definition at line 26 of file Handler.php.

Constructor & Destructor Documentation

Xoops\Core\Session\Handler::__construct ( )

Constructor

Definition at line 41 of file Handler.php.

References Xoops\db(), and Xoops\getInstance().

Here is the call graph for this function:

Member Function Documentation

Xoops\Core\Session\Handler::close ( )

Close a session

Returns
bool

Definition at line 64 of file Handler.php.

Xoops\Core\Session\Handler::destroy (   $session_id)

Destroy a session

Parameters
string$session_idId of session
Returns
bool

Definition at line 151 of file Handler.php.

References Xoops\db().

Here is the call graph for this function:

Xoops\Core\Session\Handler::gc (   $maxlifetime)

Garbage Collector

Parameters
string$maxlifetimeTime in seconds until a session expires
Returns
bool

Definition at line 169 of file Handler.php.

References Xoops\db().

Referenced by Xoops\Core\Session\Handler\read().

Here is the call graph for this function:

Here is the caller graph for this function:

Xoops\Core\Session\Handler::open (   $save_path,
  $name 
)

Open a session

Parameters
string$save_pathnot used
string$namenot used
Returns
bool

Definition at line 54 of file Handler.php.

Xoops\Core\Session\Handler::read (   $session_id)

Read a session from the database

Parameters
string$session_idId of the session
Returns
string Session data

Definition at line 76 of file Handler.php.

References $result, Xoops\db(), and Xoops\Core\Session\Handler\gc().

Here is the call graph for this function:

Xoops\Core\Session\Handler::write (   $session_id,
  $session_data 
)

Write a session to the database

Parameters
string$session_idid of session
string$session_datadata to store
Returns
bool

Definition at line 110 of file Handler.php.

References $_SESSION, $expires, $result, and Xoops\db().

Here is the call graph for this function:

Member Data Documentation

Xoops\Core\Session\Handler::$db
private

Definition at line 31 of file Handler.php.

string Xoops\Core\Session\Handler::$sessionTable = 'system_session'
private

Definition at line 36 of file Handler.php.


The documentation for this class was generated from the following file: