fastdo
0.6.8
|
网站会话 更多...
#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::Mixed & | operator[] (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.hpp 第 115 行定义.
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 | ||
) |