added: 'remember me' flag when logging

added: the session file
       sessions can still be available between starting and stopping the cmslu system


git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@529 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2009-11-20 23:09:52 +00:00
parent 848afac803
commit 4827c116f0
21 changed files with 443 additions and 36 deletions

View File

@@ -25,6 +25,7 @@ class SessionContainer
public:
typedef std::list<Session> Table;
typedef Table::iterator Iterator;
typedef Table::size_type TableSize;
typedef std::map<long, Iterator> IndexId;
typedef std::multimap<time_t, Iterator> IndexTime;
@@ -41,7 +42,9 @@ private:
public:
void Clear();
TableSize Size();
Iterator Begin();
Iterator End();
@@ -50,8 +53,8 @@ public:
bool PushBack(const Session & session);
Iterator FindById(long);
void DelFirstByTimeInterval(time_t interval);
void DelFirstByTimeInterval(time_t interval, bool skip_remember_flag = true);
void UpdateLastTime(Iterator iter, time_t new_time);
};