#include <Cookie.h>
Public Member Functions | |
| std::string | operator() () const |
| Expiration time. | |
Constructors and assignment operators | |
| Expires () | |
| Default constructor. | |
| Expires (const char *) | |
| Define the expiration time. | |
| Expires (const std::string &) | |
| Define the expiration time. | |
| Expires (time_t) | |
| Define the expiration time. | |
| Expires (struct tm) | |
| Define the expiration time. | |
| Expires (const boost::posix_time::ptime &) | |
| Define the expiration time. | |
| Expires (const Expires &) | |
| Copy constructor. | |
| ~Expires () throw () | |
| Destructor. | |
| Expires & | operator= (const Expires &) |
| Assignment operator. | |
| void | swap (Expires &) throw () |
| Swap contents with another object. | |
Inspectors | |
| operator bool () const | |
| Is an expiration time defined? | |
| bool | empty () const |
| Is the expiration time empty? | |
The HTTP cookie expiration time is one of the credentials associated with an HTTP cookie, which are described by the following reference.
The expires attribute specifies a date string that defines the valid life time of that cookie. Once the expiration date has been reached, the cookie will no longer be stored or given out. The date string is formatted as:
expires is an optional attribute. If not specified, the cookie will expire when the user's session ends.
Note: There is a bug in Netscape Navigator version 1.1 and earlier. Only cookies whose path attribute is set explicitly to "/" will be properly saved between sessions if they have an expires attribute.
Definition at line 230 of file Cookie.h.
|
|
Define the expiration time. This constructor converts a string reprentation of an expiration time into an internal forrm suitable for an HTTP cookie. The format of the string argument must follow the ISO standard, YYYY-MMM-DD HH:MM:SS, and is assumed to refer to a UTC time. The string argument is interpreted using the date_time library provided by Boost. |
|
|
Define the expiration time. This constructor converts a string reprentation of an expiration time into an internal forrm suitable for an HTTP cookie. The format of the string argument must follow the ISO standard, YYYY-MMM-DD HH:MM:SS, and is assumed to refer to a UTC time. The string argument is interpreted using the date_time library provided by Boost. |
|
|
Define the expiration time. This constructor converts a Boost Posix time representation of an expiration time into an internal forrm suitable for an HTTP cookie. The Boost library provides complete date_time handling, so it should be easy to construct an Expires object based on date_time arithmetic. |
1.4.5