fastdo  0.6.16
webx_Session.hpp
浏览该文件的文档.
1 #pragma once
2 
3 namespace eienwebx
4 {
5 
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 
39 };
40 
41 
42 } // namespace eienwebx
#define EIENWEBX_DLL
XString< tchar > String
Definition: utilities.hpp:261
Web功能的相关封装
#define DISABLE_OBJECT_COPY(clsname)
Definition: utilities.hpp:85
winux::StringMixedMap SessionData
会话数据
代表一个请求
Definition: webx_Request.hpp:9
混合体,能表示多种类型的值
Definition: utilities.hpp:1440
unsigned long ulong
Definition: utilities.hpp:216
网站会话