|
fastdo
0.6.16
|
会话服务基类 更多...
#include <webx_SessionServer.hpp>

Public 成员函数 | |
| SessionServer (time_t cleanTimeInterval=1800UL, time_t sessionLifeTime=1800UL) | |
| 构造函数 更多... | |
| virtual | ~SessionServer () |
| time_t | getCleanTimeInterval () const |
| time_t | getSessionLifeTime () const |
| virtual void | clean ()=0 |
| 执行清理操作,将过期的session删除 更多... | |
| virtual bool | startup (winux::String const &sessid, SessionData *sessData)=0 |
| 启动一个session,得到一个SessionData,用来读写数据 更多... | |
| virtual bool | save (winux::String const &sessid, SessionData const &sessData, time_t thisLifeTime=0UL)=0 |
| 保存一个session,将SessionData存储,可以指定生命期 更多... | |
Protected 属性 | |
| time_t | _cleanTimeInterval |
| 执行"清理过期session"的时间间隔 更多... | |
| time_t | _sessionLifeTime |
| 默认session生命期 更多... | |
会话服务基类
在文件 webx_SessionServer.hpp 第 20 行定义.
| eienwebx::SessionServer::SessionServer | ( | time_t | cleanTimeInterval = 1800UL, |
| time_t | sessionLifeTime = 1800UL |
||
| ) |
构造函数
| cleanTimeInterval | 执行清理过期sessions的时间间隔,用于实现clean(). |
| sessionLifeTime | Session生命有效期. |
|
virtual |
|
inline |
在文件 webx_SessionServer.hpp 第 31 行定义.
|
inline |
在文件 webx_SessionServer.hpp 第 33 行定义.
|
pure virtual |
执行清理操作,将过期的session删除
在 eienwebx::MemorySessionServer , 以及 eienwebx::FileSessionServer 内被实现.
|
pure virtual |
启动一个session,得到一个SessionData,用来读写数据
在 eienwebx::MemorySessionServer , 以及 eienwebx::FileSessionServer 内被实现.
|
pure virtual |
保存一个session,将SessionData存储,可以指定生命期
在 eienwebx::MemorySessionServer , 以及 eienwebx::FileSessionServer 内被实现.
|
protected |
执行"清理过期session"的时间间隔
在文件 webx_SessionServer.hpp 第 45 行定义.
|
protected |
默认session生命期
在文件 webx_SessionServer.hpp 第 46 行定义.