ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilSessionDBHandler Class Reference

Database Session Handling. More...

+ Collaboration diagram for ilSessionDBHandler:

Public Member Functions

 setSaveHandler ()
 open ($save_path, $name)
 close ()
 close session
 read ($session_id)
 write ($session_id, $data)
 Writes serialized session data to the database.
 destroy ($session_id)
 destroy session
 gc ($gc_maxlifetime)
 removes sessions that weren't updated for more than gc_maxlifetime seconds

Detailed Description

Database Session Handling.

inc.db_session_handler.php iliascore

Version
Id:
inc.db_session_handler.php 18894 2009-02-06 15:24:04Z akill

Definition at line 14 of file class.ilSessionDBHandler.php.

Member Function Documentation

ilSessionDBHandler::close ( )

close session

for a db nothing has to be done here

Definition at line 58 of file class.ilSessionDBHandler.php.

{
return true;
}
ilSessionDBHandler::destroy (   $session_id)

destroy session

Parameters
integer$session_idsession id

Definition at line 91 of file class.ilSessionDBHandler.php.

References ilSession\_destroy().

{
return ilSession::_destroy($session_id);
}

+ Here is the call graph for this function:

ilSessionDBHandler::gc (   $gc_maxlifetime)

removes sessions that weren't updated for more than gc_maxlifetime seconds

Parameters
integer$gc_maxlifetimemax lifetime in seconds

Definition at line 101 of file class.ilSessionDBHandler.php.

References ilSession\_destroyExpiredSessions().

+ Here is the call graph for this function:

ilSessionDBHandler::open (   $save_path,
  $name 
)

Definition at line 48 of file class.ilSessionDBHandler.php.

{
return true;
}
ilSessionDBHandler::read (   $session_id)

Definition at line 70 of file class.ilSessionDBHandler.php.

References ilSession\_getData().

{
return ilSession::_getData($session_id);
}

+ Here is the call graph for this function:

ilSessionDBHandler::setSaveHandler ( )

Definition at line 20 of file class.ilSessionDBHandler.php.

{
// register save handler functions
if (ini_get("session.save_handler") == "user")
{
session_set_save_handler(
array($this, "open"),
array($this, "close"),
array($this, "read"),
array($this, "write"),
array($this, "destroy"),
array($this, "gc"));
return true;
}
return false;
}
ilSessionDBHandler::write (   $session_id,
  $data 
)

Writes serialized session data to the database.

Parameters
integer$session_idsession id
string$datasession data

Definition at line 81 of file class.ilSessionDBHandler.php.

References ilSession\_writeData().

{
return ilSession::_writeData($session_id, $data);
}

+ Here is the call graph for this function:


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