#include <Cookie.h>
Public Member Functions | |
| std::string | operator() () const |
| Cookie path. | |
Constructors and assignment operators | |
| Path () | |
| Default constructor. | |
| Path (const char *) | |
| Define the path to a cookie. | |
| Path (const std::string &) | |
| Define the path to a cookie. | |
| Path (const Path &) | |
| Copy constructor. | |
| ~Path () throw () | |
| Destructor. | |
| Path & | operator= (const Path &) |
| Assignment operator. | |
| void | swap (Path &) throw () |
| Swap contents with another object. | |
Inspectors | |
| bool | empty () const |
| Is the path empty? | |
The HTTP cookie path is one of the credentials associated with an HTTP cookie, which are described by the following reference.
The path attribute is used to specify the subset of URLs in a domain for which the cookie is valid. If a cookie has already passed domain matching, then the pathname component of the URL is compared with the path attribute, and if there is a match, the cookie is considered valid and is sent along with the URL request. The path "/foo" would match "/foobar" and "/foo/bar.html". The path "/" is the most general path.
If the path is not specified, it as assumed to be the same path as the document being described by the header which contains the cookie.
Definition at line 162 of file Cookie.h.
1.4.5