Public Member Functions | List of all members
cppcms::sessions::session_cookies Class Reference

The implementation of session_api using encrypted or signed cookies. More...

#include <cppcms/session_cookies.h>

Inheritance diagram for cppcms::sessions::session_cookies:
cppcms::session_api booster::noncopyable

Public Member Functions

 session_cookies (std::auto_ptr< encryptor > encryptor)
 ~session_cookies ()
virtual void save (session_interface &, std::string const &data, time_t timeout, bool newone, bool on_server)
virtual bool load (session_interface &, std::string &data, time_t &timeout)
virtual bool is_blocking ()
virtual void clear (session_interface &)
- Public Member Functions inherited from cppcms::session_api
virtual ~session_api ()

Detailed Description

The implementation of session_api using encrypted or signed cookies.

Constructor & Destructor Documentation

cppcms::sessions::session_cookies::session_cookies ( std::auto_ptr< encryptor encryptor)

Create a new object passing it a pointer ecryptor as parameter

cppcms::sessions::session_cookies::~session_cookies ( )

Destroy it and destroy an encryptor it was created with

Member Function Documentation

virtual void cppcms::sessions::session_cookies::clear ( session_interface )

Delete session, see session_api::clear

Implements cppcms::session_api.

virtual bool cppcms::sessions::session_cookies::is_blocking ( )
virtual bool cppcms::sessions::session_cookies::load ( session_interface ,
std::string &  data,
time_t &  timeout 

Load session from cookies, see session_api::load

Implements cppcms::session_api.

virtual void cppcms::sessions::session_cookies::save ( session_interface ,
std::string const &  data,
time_t  timeout,
bool  newone,
bool  on_server 

Save session to cookies, see session_api::save

Implements cppcms::session_api.

The documentation for this class was generated from the following file: