added: SessionContainer special container used by SessionManager
sessions are indexed by id and time (last used time) changed: old sessions are deleted parameter: session_max_iddle in the config file added: function 'who' git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@483 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -145,6 +145,7 @@ void RequestController::Loop()
|
||||
// and then BaseUrlRedirect() will be called (for performance)
|
||||
if( !BaseUrlRedirect() )
|
||||
{
|
||||
session_manager.DeleteOldSessions();
|
||||
session_manager.SetSession(); // set request.session as well
|
||||
request.session->CheckTimers();
|
||||
|
||||
@@ -177,3 +178,16 @@ void RequestController::Loop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
SessionContainer::Iterator RequestController::SessionBegin()
|
||||
{
|
||||
return session_manager.SessionBegin();
|
||||
}
|
||||
|
||||
|
||||
SessionContainer::Iterator RequestController::SessionEnd()
|
||||
{
|
||||
return session_manager.SessionEnd();
|
||||
}
|
||||
|
Reference in New Issue
Block a user