fastdo  0.6.8
fcgi::Session类 参考

网站会话 更多...

#include <fcgiplus.hpp>

Public 成员函数

 Session (Request &req, winux::String const &sessid="", winux::uint cookieSessIdLifeTime=0, winux::uint sessionLifeTime=0, winux::String const &cookiesPath="")
 
 ~Session ()
 
winux::Mixedoperator[] (winux::String const &name)
 
winux::Mixed const & operator[] (winux::String const &name) const
 
bool has (winux::String const &name) const
 
winux::Mixed const & get (winux::String const &name) const
 
void set (winux::String const &name, winux::Mixed const &v)
 
bool del (winux::String const &name)
 

详细描述

网站会话

运行机制: 当创建一个Session对象时,若未给定sessid,则向Cookie查询一个sessid. 若没有,则新建一个sessid的cookie,值为一个唯一串,生成方式自定. 通过sessid调用sessionServer启动一个会话.

在文件 fcgiplus.hpp115 行定义.

构造及析构函数说明

fcgi::Session::Session ( Request req,
winux::String const &  sessid = "",
winux::uint  cookieSessIdLifeTime = 0,
winux::uint  sessionLifeTime = 0,
winux::String const &  cookiesPath = "" 
)
fcgi::Session::~Session ( )

成员函数说明

bool fcgi::Session::del ( winux::String const &  name)
winux::Mixed const& fcgi::Session::get ( winux::String const &  name) const
bool fcgi::Session::has ( winux::String const &  name) const
winux::Mixed& fcgi::Session::operator[] ( winux::String const &  name)
winux::Mixed const& fcgi::Session::operator[] ( winux::String const &  name) const
void fcgi::Session::set ( winux::String const &  name,
winux::Mixed const &  v 
)

该类的文档由以下文件生成: