ClearSilver::Cookie::Path Class Reference

HTTP cookie path. More...

#include <Cookie.h>

List of all members.

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.
Pathoperator= (const Path &)
 Assignment operator.
void swap (Path &) throw ()
 Swap contents with another object.
Inspectors
bool empty () const
 Is the path empty?


Detailed Description

HTTP cookie path.

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.


The documentation for this class was generated from the following files:
Generated on Tue May 16 14:50:54 2006 for ClearSilver C++ Library by  doxygen 1.4.5