fastdo  0.6.8
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;
34  winux::ulong _cookieSessIdLifeTime;
35  winux::ulong _sessionLifeTime;
36  bool _isModified;
37 
39 };
40 
41 
42 } // namespace eienwebx
#define EIENWEBX_DLL
XString< tchar > String
Definition: utilities.hpp:216
Web功能的相关封装
#define DISABLE_OBJECT_COPY(clsname)
Definition: utilities.hpp:81
winux::StringMixedMap SessionData
会话数据
代表一个请求
混合体,能表示多种类型的值
Definition: utilities.hpp:750
unsigned long ulong
Definition: utilities.hpp:171
网站会话