libcex
1.0.0
Modern C++11 embedded webserver library
|
Contains all options for the sessionHandler middleware. More...
#include <session.hpp>
Public Attributes | |
time_t | expires |
Sets the expires cookie option. Must be a relative time offset in seconds. | |
long | maxAge |
Sets the maxAge cookie option. | |
std::string | domain |
Sets the domain cookie option. | |
std::string | path |
sets the path cookie option | |
std::string | name |
sets the name cookie option | |
bool | secure |
sets the secure cookie option | |
bool | httpOnly |
sets the HTTP-only cookie option | |
bool | sameSiteStrict |
sets the same-site (strict) cookie option | |
bool | sameSiteLax |
sets the same-site (lax) cookie option | |
Contains all options for the sessionHandler middleware.
Example:
will set the following cookie: