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>
22 class encryptor_factory;
23 class session_storage_factory;
46 void backend(std::auto_ptr<session_api_factory> b);
51 void encryptor(std::auto_ptr<sessions::encryptor_factory> e);
56 void storage(std::auto_ptr<sessions::session_storage_factory> s);
61 struct cookies_factory;
65 template<
typename Encryptor>
67 template<
typename Encryptor>
68 struct enc_factory_param;
72 friend struct cookies_factory;
73 friend struct dual_factory;
74 friend struct sid_factory;
79 std::auto_ptr<session_api_factory> backend_;
80 std::auto_ptr<sessions::encryptor_factory> encryptor_;
81 std::auto_ptr<sessions::session_storage_factory> storage_;
This class represent the central event loop of the CppCMS applications.
Definition: service.h:59
This class provides an access to session management backends an allow customization.
Definition: session_pool.h:32
This class makes impossible to copy any class derived from this one.
Definition: noncopyable.h:15