|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
#include <SessionManager.hpp>
Public Attributes | |
| std::string | cookie_name = "session_id" |
| int | ttl_seconds = 86400 |
| Idle lifetime; refreshed on every request. | |
| bool | secure = false |
| Set the Secure attribute (enable behind HTTPS) | |
| std::string | same_site = "Lax" |
| bool | save_uninitialized = true |
| std::string orbit::middleware::SessionOptions::cookie_name = "session_id" |
| std::string orbit::middleware::SessionOptions::same_site = "Lax" |
SameSite attribute: "Strict", "Lax" or "None"
| bool orbit::middleware::SessionOptions::save_uninitialized = true |
Store (and send a cookie for) sessions nobody wrote to. On by default, as before; turn off so anonymous visitors and bots create no sessions.
| bool orbit::middleware::SessionOptions::secure = false |
Set the Secure attribute (enable behind HTTPS)
| int orbit::middleware::SessionOptions::ttl_seconds = 86400 |
Idle lifetime; refreshed on every request.