added: put info about logging out a user (to 'last' table) (when a session expires)
git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@496 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
a1ea298a43
commit
e778903dab
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
#include "sessioncontainer.h"
|
||||
|
||||
#include "data.h"
|
||||
|
||||
void SessionContainer::Clear()
|
||||
{
|
||||
|
@ -79,7 +79,10 @@ time_t limit = std::time(0) - interval;
|
|||
{
|
||||
long id = i->second->id;
|
||||
iold = i;
|
||||
++i;
|
||||
++i; // incrementing before deleting old one
|
||||
|
||||
if( iold->second->puser )
|
||||
data.last.UserLogout(iold->second->puser->id, iold->second->id);
|
||||
|
||||
// we're logging session.id (call this before table.erase())
|
||||
DelFromIdIndex(iold->second);
|
||||
|
|
Loading…
Reference in New Issue