Defines ID values for HTTP sessions.
More...
#include <fastcgi++/http.hpp>
|
| static const size_t | size =15 |
| | Size in bytes of the ID data. Make sure it is a multiple of 3. More...
|
| |
| static const size_t | stringLength =size*4/3 |
| | Size in characters of string representation. More...
|
| |
|
| void | refresh () const |
| | Resets the last access timestamp to the current time. More...
|
| |
|
| template<class T > |
| class | Sessions |
| |
| template<class charT , class Traits > |
| std::basic_ostream< charT, Traits > & | operator<< (std::basic_ostream< charT, Traits > &os, const SessionId &x) |
| | Output the ID data in base64 encoding. More...
|
| |
Defines ID values for HTTP sessions.
- Date
- March 24, 2016
- Author
- Eddie Carle <eddie.nosp@m.@isa.nosp@m.tec.c.nosp@m.a>
Definition at line 546 of file http.hpp.
◆ SessionId() [1/3]
| Fastcgipp::Http::SessionId::SessionId |
( |
| ) |
|
◆ SessionId() [2/3]
| Fastcgipp::Http::SessionId::SessionId |
( |
const SessionId & |
x | ) |
|
|
inline |
◆ SessionId() [3/3]
template<class charT >
| Fastcgipp::Http::SessionId::SessionId |
( |
const std::basic_string< charT > & |
string | ) |
|
Initialize the ID data with a base64 encoded string.
Note that only stringLength characeters will be read from the string.
- Parameters
-
| [in] | string | Reference to base64 encoded string |
Definition at line 643 of file http.cpp.
References Fastcgipp::Http::base64Decode().
◆ operator<()
| bool Fastcgipp::Http::SessionId::operator< |
( |
const SessionId & |
x | ) |
const |
|
inline |
◆ operator==()
| bool Fastcgipp::Http::SessionId::operator== |
( |
const SessionId & |
x | ) |
const |
|
inline |
◆ refresh()
| void Fastcgipp::Http::SessionId::refresh |
( |
| ) |
const |
|
inlineprivate |
Resets the last access timestamp to the current time.
Definition at line 563 of file http.hpp.
References m_timestamp.
◆ operator<<
template<class charT , class Traits >
| std::basic_ostream<charT, Traits>& operator<< |
( |
std::basic_ostream< charT, Traits > & |
os, |
|
|
const SessionId & |
x |
|
) |
| |
|
friend |
Output the ID data in base64 encoding.
Definition at line 613 of file http.hpp.
◆ Sessions
◆ m_data
| std::array<unsigned char, size> Fastcgipp::Http::SessionId::m_data |
|
private |
◆ m_timestamp
| std::time_t Fastcgipp::Http::SessionId::m_timestamp |
|
mutableprivate |
◆ size
| const size_t Fastcgipp::Http::SessionId::size =15 |
|
static |
◆ stringLength
| const size_t Fastcgipp::Http::SessionId::stringLength =size*4/3 |
|
static |
Size in characters of string representation.
Definition at line 553 of file http.hpp.
The documentation for this class was generated from the following files: