2 #include <TSessionStore>
7 QString
key()
const {
return "mongodb"; }
10 bool remove(
const QByteArray &
id)
override;
11 int gc(
const QDateTime &expire)
override;
The TSessionMongoStore class stores HTTP sessions into MongoDB system using object-document mapping t...
Definition: tsessionmongostore.h:5
int gc(const QDateTime &expire) override
Definition: tsessionmongostore.cpp:91
bool remove(const QByteArray &id) override
Removes all sessions older than the expiration datetime.
Definition: tsessionmongostore.cpp:83
bool store(TSession &session) override
Stores the session in the session store.
Definition: tsessionmongostore.cpp:20
QString key() const
Definition: tsessionmongostore.h:7
TSession find(const QByteArray &id) override
Returns the session which has the ID id and is newer than or equal to the expiration datetime in the ...
Definition: tsessionmongostore.cpp:58
The TSessionStore is an abstract class that stores HTTP sessions.
Definition: tsessionstore.h:8
The TSession class holds information associated with individual visitors.
Definition: tsession.h:7