fastdo
0.6.16
首页
命名空间
类
文件
文件列表
文件成员
webx_Session.hpp
浏览该文件的文档.
1
#pragma once
2
3
namespace
eienwebx
4
{
5
12
class
EIENWEBX_DLL
Session
13
{
14
public
:
22
Session
(
Request
& req,
winux::String
const
& sessid =
""
,
winux::String
const
& cookiesPath =
"/"
,
winux::ulong
cookieSessIdLifeTime = 0,
winux::ulong
sessionLifeTime = 0 );
23
~
Session
();
24
winux::Mixed
& operator [] (
winux::String
const
& name );
25
winux::Mixed
const
& operator [] (
winux::String
const
& name )
const
;
26
bool
has(
winux::String
const
& name )
const
;
27
winux::Mixed
const
&
get
(
winux::String
const
& name )
const
;
28
void
set
(
winux::String
const
& name,
winux::Mixed
const
& v );
29
bool
del(
winux::String
const
& name );
30
private
:
31
Request
& _req;
32
SessionData
_data;
33
winux::String
_sessid;
// session唯一标识
34
winux::ulong
_cookieSessIdLifeTime;
// sessid cookie生命期
35
winux::ulong
_sessionLifeTime;
// session生命期
36
bool
_isModified;
// 是否修改过
37
38
DISABLE_OBJECT_COPY
(
Session
)
39
};
40
41
42
}
// namespace eienwebx
EIENWEBX_DLL
#define EIENWEBX_DLL
Definition:
eienwebx_base.hpp:27
winux::String
XString< tchar > String
Definition:
utilities.hpp:261
eienwebx
Web功能的相关封装
Definition:
eienwebx_base.hpp:45
DISABLE_OBJECT_COPY
#define DISABLE_OBJECT_COPY(clsname)
Definition:
utilities.hpp:85
eienwebx::SessionData
winux::StringMixedMap SessionData
会话数据
Definition:
webx_SessionServer.hpp:9
eienwebx::Request
代表一个请求
Definition:
webx_Request.hpp:9
winux::Mixed
混合体,能表示多种类型的值
Definition:
utilities.hpp:1440
winux::ulong
unsigned long ulong
Definition:
utilities.hpp:216
eienwebx::Session
网站会话
Definition:
webx_Session.hpp:12
dist
x64
include
webx_Session.hpp
生成于 2024年 十二月 24日 星期二 01:35:07 , 为 fastdo使用
1.8.11