MDL-17942 more session refactoring

This commit is contained in:
skodak
2009-01-18 18:00:44 +00:00
parent 27d41812c3
commit e8656befac
7 changed files with 133 additions and 114 deletions
+10 -1
View File
@@ -343,7 +343,16 @@ class auth_plugin_base {
//override if needed
}
function ignore_timeout_hook($userid, $userauth, $sid, $timecreated, $timemodified) {
/**
* Hook called before timing out of database session.
* This is usueful for SSO and MNET.
* @param object $user
* @param string $sid session id
* @param int $timecreated start of session
* @param int $timemodified user last seen
* @return bool true means do not timeout session yet
*/
function ignore_timeout_hook($user, $sid, $timecreated, $timemodified) {
return false;
}