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:
@@ -18,16 +18,19 @@
|
||||
#include "data.h"
|
||||
#include "session.h"
|
||||
#include "db.h"
|
||||
|
||||
#include "sessioncontainer.h"
|
||||
|
||||
|
||||
|
||||
class SessionManager
|
||||
{
|
||||
// !! zamienic na map
|
||||
typedef std::set<Session> SessionTable;
|
||||
//typedef std::set<Session> SessionTable;
|
||||
//SessionTable session_table;
|
||||
|
||||
SessionTable session_table;
|
||||
SessionContainer session_table;
|
||||
|
||||
|
||||
|
||||
bool IsSession(long s);
|
||||
|
||||
@@ -39,6 +42,10 @@ public:
|
||||
|
||||
|
||||
void SetSession();
|
||||
void DeleteOldSessions();
|
||||
|
||||
SessionContainer::Iterator SessionBegin();
|
||||
SessionContainer::Iterator SessionEnd();
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user