|
ILIAS
release_8 Revision v8.24
|
Database Session Handling. More...
Inheritance diagram for ilSessionDBHandler:
Collaboration diagram for ilSessionDBHandler:Public Member Functions | |
| setSaveHandler () | |
| Registers the session save handler session.save_handler must be 'user'. More... | |
| open ($path, $name) | |
| Opens session, normally a db connection would be opened here, but we use the standard ilias db connection, so nothing must be done here. More... | |
| close () | |
| close session More... | |
| read ($id) | |
| Reads data of the session identified by $session_id and returns it as a serialised string. More... | |
| write ($id, $data) | |
| Writes serialized session data to the database. More... | |
| destroy ($id) | |
| Destroys session. More... | |
| gc ($max_lifetime) | |
| Removes sessions that weren't updated for more than gc_maxlifetime seconds. More... | |
Database Session Handling.
Definition at line 24 of file class.ilSessionDBHandler.php.
| ilSessionDBHandler::close | ( | ) |
close session
for a db nothing has to be done here
Definition at line 58 of file class.ilSessionDBHandler.php.
| ilSessionDBHandler::destroy | ( | $id | ) |
Destroys session.
| string | $id | session id |
Definition at line 90 of file class.ilSessionDBHandler.php.
References $id, and ilSession\_destroy().
Here is the call graph for this function:| ilSessionDBHandler::gc | ( | $max_lifetime | ) |
Removes sessions that weren't updated for more than gc_maxlifetime seconds.
| int | $max_lifetime | Sessions that have not updated for the last max_lifetime seconds will be removed. |
Definition at line 99 of file class.ilSessionDBHandler.php.
References ilSession\_destroyExpiredSessions().
Here is the call graph for this function:| ilSessionDBHandler::open | ( | $path, | |
| $name | |||
| ) |
Opens session, normally a db connection would be opened here, but we use the standard ilias db connection, so nothing must be done here.
| string | $path | |
| string | $name | session name [PHPSESSID] |
Definition at line 48 of file class.ilSessionDBHandler.php.
| ilSessionDBHandler::read | ( | $id | ) |
Reads data of the session identified by $session_id and returns it as a serialised string.
If there is no session with this ID an empty string is returned
| string | $id |
Definition at line 69 of file class.ilSessionDBHandler.php.
References $id, and ilSession\_getData().
Here is the call graph for this function:| ilSessionDBHandler::setSaveHandler | ( | ) |
Registers the session save handler session.save_handler must be 'user'.
Definition at line 30 of file class.ilSessionDBHandler.php.
| ilSessionDBHandler::write | ( | $id, | |
| $data | |||
| ) |
Writes serialized session data to the database.
| string | $id | session id |
| string | $data | session data |
Definition at line 79 of file class.ilSessionDBHandler.php.