Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::middleware::SessionOptions Struct Reference

#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
 

Member Data Documentation

◆ cookie_name

std::string orbit::middleware::SessionOptions::cookie_name = "session_id"

◆ same_site

std::string orbit::middleware::SessionOptions::same_site = "Lax"

SameSite attribute: "Strict", "Lax" or "None"

◆ save_uninitialized

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.

◆ secure

bool orbit::middleware::SessionOptions::secure = false

Set the Secure attribute (enable behind HTTPS)

◆ ttl_seconds

int orbit::middleware::SessionOptions::ttl_seconds = 86400

Idle lifetime; refreshed on every request.


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