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:
@@ -23,6 +23,9 @@ struct Session
|
||||
// 0 - means that there is no session
|
||||
long id;
|
||||
|
||||
// true if the session was created now
|
||||
bool new_session;
|
||||
|
||||
// when this session was created
|
||||
// (the same values)
|
||||
time_t time;
|
||||
@@ -37,6 +40,9 @@ struct Session
|
||||
// 0 - means that nobody is logged
|
||||
User * puser;
|
||||
|
||||
// if false the session will end when the user browser is shutdown
|
||||
bool remember_me;
|
||||
|
||||
// what is done
|
||||
Done done;
|
||||
Error done_status;
|
||||
@@ -47,7 +53,7 @@ struct Session
|
||||
// used for many purposes, depending on 'done'
|
||||
Item item;
|
||||
|
||||
|
||||
// rebus - set by rebus_question(Info & i) from templates
|
||||
Rebus::Item * rebus_item;
|
||||
|
||||
std::string dir_old;
|
||||
@@ -55,7 +61,7 @@ struct Session
|
||||
// -------------------
|
||||
|
||||
Session();
|
||||
virtual void Clear();
|
||||
void Clear();
|
||||
bool operator==(const Session & s) const;
|
||||
bool operator<(const Session & s) const;
|
||||
bool DecTimer(int & timer);
|
||||
|
Reference in New Issue
Block a user