47 gettimeofday(&time, 0);
48 long millis = (time.tv_sec * 1000) + (time.tv_usec / 1000);
void setSurname(const std::string &surname)
set the surname of the user
void setName(const std::string &name)
set the name of the user
const std::string & getName()
void setGroups(const std::set< std::string > &groups)
sets the groups of a user
std::set< std::string > m_groups
WsUserSession(const std::string &uid, const std::string &pass="", const std::string &ip="")
Constructor.
const std::string & getEmail()
void setEmail(const std::string &email)
set the email of the user
const std::set< std::string > & getGroups()
get the groups belonging to the user
const std::string & getSurname()
long getNowTimestamp()
returns the time.now()
bool isValidSession(const std::string &uid, const std::string &pass, const std::string &ip)
returns true or false whether the session is valid