ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
inc.db_session_handler.php File Reference

Go to the source code of this file.

Functions

 db_session_open ($save_path, $name)
 Database Session Handling.
 db_session_close ()
 close session
 db_session_read ($session_id)
 db_session_write ($session_id, $data)
 Writes serialized session data to the database.
 db_session_destroy ($session_id)
 destroy session
 db_session_gc ($gc_maxlifetime)
 removes sessions that weren't updated for more than gc_maxlifetime seconds
 db_set_save_handler ()
 duplicate_session ($a_session_id)

Function Documentation

db_session_close ( )

close session

for a db nothing has to be done here

Definition at line 54 of file inc.db_session_handler.php.

{
return true;
}
db_session_destroy (   $session_id)

destroy session

Parameters
integer$session_idsession id

Definition at line 87 of file inc.db_session_handler.php.

References ilSession\_destroy().

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

+ Here is the call graph for this function:

db_session_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 98 of file inc.db_session_handler.php.

References ilSession\_destroyExpiredSessions().

+ Here is the call graph for this function:

db_session_open (   $save_path,
  $name 
)

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 44 of file inc.db_session_handler.php.

{
return true;
}
db_session_read (   $session_id)

Definition at line 66 of file inc.db_session_handler.php.

References ilSession\_getData().

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

+ Here is the call graph for this function:

db_session_write (   $session_id,
  $data 
)

Writes serialized session data to the database.

Parameters
integer$session_idsession id
string$datasession data

Definition at line 77 of file inc.db_session_handler.php.

References $data, and ilSession\_writeData().

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

+ Here is the call graph for this function:

db_set_save_handler ( )

Definition at line 108 of file inc.db_session_handler.php.

Referenced by ilBaseAuthentication\__setSessionSaveHandler(), ilPasswordAssistanceGUI\sendPasswordAssistanceMail(), and ilInitialisation\setSessionHandler().

{
// register save handler functions
if (ini_get("session.save_handler") == "user")
{
session_set_save_handler(
"db_session_open",
"db_session_close",
"db_session_read",
"db_session_write",
"db_session_destroy",
"db_session_gc");
return true;
}
return false;
}

+ Here is the caller graph for this function:

duplicate_session (   $a_session_id)

Definition at line 127 of file inc.db_session_handler.php.

References ilSession\_duplicate().

Referenced by ilContainer\cloneAllObject(), and ilECSTaskScheduler\start().

{
return ilSession::_duplicate($a_session_id);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function: