|
fastcgi++
|
Defines ID values for HTTP sessions. More...
#include <http.hpp>
Public Member Functions | |
| SessionId () | |
| The default constructor initializes the ID data to a random value. | |
| SessionId (const SessionId &x) | |
| const SessionId & | operator= (const SessionId &x) |
| template<class charT > | |
| const SessionId & | operator= (charT *data_) |
| Assign the ID data with a base64 encoded string. | |
| template<class charT > | |
| SessionId (charT *data_) | |
| Initialize the ID data with a base64 encoded string. | |
| bool | operator< (const SessionId &x) const |
| bool | operator== (const SessionId &x) const |
| void | refresh () const |
| Resets the last access timestamp to the current time. | |
| const char * | getInternalPointer () const |
Static Public Attributes | |
| static const int | size = 12 |
| Size in bytes of the ID data. | |
Private Attributes | |
| char | data [size] |
| ID data. | |
| boost::posix_time::ptime | timestamp |
| Contains the time this session was last used. | |
Static Private Attributes | |
| static bool | seeded = false |
| Set to true once the random number generator has been seeded. | |
Friends | |
| 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. | |
| Fastcgipp::Http::SessionId::SessionId | ( | const SessionId & | x | ) | [inline] |
| Fastcgipp::Http::SessionId::SessionId | ( | charT * | data_ | ) | [inline] |
| const char* Fastcgipp::Http::SessionId::getInternalPointer | ( | ) | const [inline] |
| bool Fastcgipp::Http::SessionId::operator< | ( | const SessionId & | x | ) | const [inline] |
| const Fastcgipp::Http::SessionId & Fastcgipp::Http::SessionId::operator= | ( | charT * | data_ | ) |
Assign the ID data with a base64 encoded string.
Note that only size*4/3 bytes will be read from the string.
| data_ | Iterator set at begin of base64 encoded string |
Definition at line 474 of file http.cpp.
References Fastcgipp::Http::base64Decode().
| bool Fastcgipp::Http::SessionId::operator== | ( | const SessionId & | x | ) | const [inline] |
| void Fastcgipp::Http::SessionId::refresh | ( | ) | const [inline] |
| std::basic_ostream<charT, Traits>& operator<< | ( | std::basic_ostream< charT, Traits > & | os, |
| const SessionId & | x | ||
| ) | [friend] |
char Fastcgipp::Http::SessionId::data[size] [private] |
ID data.
Definition at line 441 of file http.hpp.
Referenced by getInternalPointer(), operator<(), operator=(), operator==(), and SessionId().
bool Fastcgipp::Http::SessionId::seeded = false [static, private] |
const int Fastcgipp::Http::SessionId::size = 12 [static] |
Size in bytes of the ID data.
Definition at line 435 of file http.hpp.
Referenced by operator<(), Fastcgipp::Http::operator<<(), operator=(), operator==(), and SessionId().
boost::posix_time::ptime Fastcgipp::Http::SessionId::timestamp [private] |
Contains the time this session was last used.
Definition at line 446 of file http.hpp.
Referenced by operator=(), and refresh().
1.7.6.1