TreeFrogFramework: src/tsessionstore.h Source File

Go to the documentation of this file.

1#pragma once

2#include <QByteArray>

3#include <QDateTime>

4#include <QString>

5#include <TSession>

6

7

9public:

14 virtual bool remove(const QByteArray &id) = 0;

15 virtual int gc(const QDateTime &expire) = 0;

16

17 static int64_t lifeTimeSecs();

18};

19

The TSessionStore is an abstract class that stores HTTP sessions.

Definition tsessionstore.h:8

virtual TSession find(const QByteArray &id)=0

Returns the session which has the ID id and is newer than or equal to the expiration datetime in the ...

virtual bool store(TSession &sesion)=0

Stores the session in the session store.

virtual bool remove(const QByteArray &id)=0

Removes all sessions older than the expiration datetime.

virtual ~TSessionStore()

Definition tsessionstore.h:11

virtual int gc(const QDateTime &expire)=0

TSessionStore()

Definition tsessionstore.h:10

The TSession class holds information associated with individual visitors.

Definition tsession.h:7

#define T_CORE_EXPORT

Definition tdeclexport.h:28