TreeFrogFramework  1.24
tsessionsqlobjectstore.h
Go to the documentation of this file.
1 #ifndef TSESSIONSQLOBJECTSTORE_H
2 #define TSESSIONSQLOBJECTSTORE_H
3 
4 #include <TSessionStore>
5 
6 
8 {
9 public:
10  QString key() const { return "sqlobject"; }
11  TSession find(const QByteArray &id) override;
12  bool store(TSession &session) override;
13  bool remove(const QByteArray &id) override;
14  int gc(const QDateTime &expire) override;
15 };
16 
17 #endif // TSESSIONSQLOBJECTSTORE_H
QString key() const
Definition: tsessionsqlobjectstore.h:10
The TSessionSqlObjectStore class stores HTTP sessions into database system using object-relational ma...
Definition: tsessionsqlobjectstore.h:7
bool store(TSession &session) override
Stores the session in the session store.
Definition: tsessionsqlobjectstore.cpp:22
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: tsessionsqlobjectstore.cpp:61
The TSession class holds information associated with individual visitors.
Definition: tsession.h:9
int gc(const QDateTime &expire) override
Definition: tsessionsqlobjectstore.cpp:94
The TSessionStore is an abstract class that stores HTTP sessions.
Definition: tsessionstore.h:10