Granada  1.54.0
Structured layer on top of C++ REST SDK for building server applications in C++. Granada implements sessions, server side plug-in framework, C++ OAuth 2.0 server, data storage access, server script running, server browsing.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Protected Member Functions | List of all members
granada::http::session::MapSessionHandler Class Reference

#include <map_session.h>

Inheritance diagram for granada::http::session::MapSessionHandler:
granada::http::session::SessionHandler

Public Member Functions

 MapSessionHandler ()
 
virtual
granada::cache::CacheHandler
cache () override
 
- Public Member Functions inherited from granada::http::session::SessionHandler
 SessionHandler ()
 
virtual const bool SessionExists (const std::string &token)
 
virtual const std::string GenerateToken ()
 
virtual void LoadSession (const std::string &token, granada::http::session::Session *virgin)
 
virtual void SaveSession (granada::http::session::Session *session)
 
virtual void DeleteSession (granada::http::session::Session *session)
 
virtual void CleanSessions ()
 
virtual void CleanSessions (bool recursive)
 

Protected Member Functions

virtual
granada::crypto::NonceGenerator
nonce_generator () override
 
virtual
granada::http::session::SessionFactory
factory () override
 
- Protected Member Functions inherited from granada::http::session::SessionHandler
virtual void LoadProperties ()
 
virtual int & token_length ()
 
virtual double & clean_sessions_frequency ()
 
virtual const std::string session_value_hash (const std::string &token)
 

Additional Inherited Members

- Static Protected Attributes inherited from granada::http::session::SessionHandler
static int token_length_
 
static double clean_sessions_frequency_
 

Constructor & Destructor Documentation

granada::http::session::MapSessionHandler::MapSessionHandler ( )
inline

Constructor Initialize the session properties and the session cleaner once per all the MapSessions.

Member Function Documentation

virtual granada::cache::CacheHandler* granada::http::session::MapSessionHandler::cache ( )
inlineoverridevirtual

Returns a pointer to the cache used to store the sessions' values.

Returns
Pointer to the cache used to store the sessions' values.

Reimplemented from granada::http::session::SessionHandler.

virtual granada::http::session::SessionFactory* granada::http::session::MapSessionHandler::factory ( )
inlineoverrideprotectedvirtual

Returns a Checkpoint Session pointer used to test sessions status without knowing their type.

Returns
Checkpoint Session pointer used to test sessions status without knowing their type.

Reimplemented from granada::http::session::SessionHandler.

virtual granada::crypto::NonceGenerator* granada::http::session::MapSessionHandler::nonce_generator ( )
inlineoverrideprotectedvirtual

Returns a pointer to a nonce string generator, for generating unique strings tokens.

Returns
Pointer to a nonce string generator, for generating unique strings tokens.

Reimplemented from granada::http::session::SessionHandler.


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