8 #ifndef CPPCMS_SESSION_POOL_H 9 #define CPPCMS_SESSION_POOL_H 11 #include <cppcms/defs.h> 12 #include <booster/shared_ptr.h> 13 #include <booster/hold_ptr.h> 14 #include <cppcms/session_api.h> 16 #include <booster/auto_ptr_inc.h> 21 struct cached_settings;
24 class encryptor_factory;
25 class session_storage_factory;
27 namespace json {
class value; }
69 void backend(std::auto_ptr<session_api_factory> b);
74 void encryptor(std::auto_ptr<sessions::encryptor_factory> e);
79 void storage(std::auto_ptr<sessions::session_storage_factory> s);
82 impl::cached_settings
const &cached_settings();
86 struct cookies_factory;
90 template<
typename Encryptor>
92 template<
typename Encryptor>
93 struct enc_factory_param;
97 friend struct cookies_factory;
98 friend struct dual_factory;
99 friend struct sid_factory;
105 std::auto_ptr<session_api_factory> backend_;
106 std::auto_ptr<sessions::encryptor_factory> encryptor_;
107 std::auto_ptr<sessions::session_storage_factory> storage_;
This class is central representation of json objects.
Definition: json.h:140
This class represent the central event loop of the CppCMS applications.
Definition: service.h:62
This class provides an access to an application for session management.
Definition: session_interface.h:107
This is the namespace where all CppCMS functionality is placed.
Definition: application.h:19
This class provides an access to session management backends an allow customization.
Definition: session_pool.h:35
This class makes impossible to copy any class derived from this one.
Definition: noncopyable.h:15