TreeFrogFramework 2.10
Loading...
Searching...
No Matches
tsessionsqlobjectstore.h
Go to the documentation of this file.
1#pragma once
2#include <TSessionStore>
3
4
6public:
7 QString key() const { return "sqlobject"; }
8 TSession find(const QByteArray &id) override;
9 bool store(TSession &session) override;
10 bool remove(const QByteArray &id) override;
11 int gc(const QDateTime &expire) override;
12};
13
The TSessionSqlObjectStore class stores HTTP sessions into database system using object-relational ma...
Definition tsessionsqlobjectstore.h:5
bool remove(const QByteArray &id) override
Removes all sessions older than the expiration datetime.
Definition tsessionsqlobjectstore.cpp:108
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:81
QString key() const
Definition tsessionsqlobjectstore.h:7
int gc(const QDateTime &expire) override
Definition tsessionsqlobjectstore.cpp:116
bool store(TSession &session) override
Stores the session in the session store.
Definition tsessionsqlobjectstore.cpp:40
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