|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
Loads or creates the session for each request (req.session, req.session_id) and saves it when the response is sent. More...
#include <SessionManager.hpp>

Public Member Functions | |
| SessionManager (std::shared_ptr< SessionStore > store, SessionOptions options={}) | |
| bool | operator() (http::HttpRequest &req, std::shared_ptr< http::ResponseWriter > writer) |
Static Public Member Functions | |
| static std::string | generate_session_id () |
Private Attributes | |
| std::shared_ptr< SessionStore > | store_ |
| SessionOptions | options_ |
Loads or creates the session for each request (req.session, req.session_id) and saves it when the response is sent.
| orbit::middleware::SessionManager::SessionManager | ( | std::shared_ptr< SessionStore > | store, |
| SessionOptions | options = {} |
||
| ) |
|
static |
| bool orbit::middleware::SessionManager::operator() | ( | http::HttpRequest & | req, |
| std::shared_ptr< http::ResponseWriter > | writer | ||
| ) |
|
private |
|
private |