Go to the documentation of this file.
24 #ifndef _HTTPCOOKIE_H_
25 #define _HTTPCOOKIE_H_ 1
80 const std::string& value);
99 const std::string& value,
101 const std::string& domain,
102 unsigned long maxAge,
103 const std::string& path,
149 {
return ! operator==(cookie); }
179 { fRemoved = removed; }
201 const std::string& domain,
202 const std::string& path,
315 { fDomain = domain; }
325 { fMaxAge = maxAge; }
345 { fSecure = secure; }
353 render(std::ostream& out)
const;
359 std::string fComment;
361 unsigned long fMaxAge;
void setValue(const std::string &value)
Set the value of this cookie.
std::string getDomain() const
Get the domain for which this cookie is valid.
void setComment(const std::string &comment)
Set the comment of this cookie.
std::string getPath() const
Get the path of this cookie.
Mix-in streamable interface.
unsigned long getMaxAge() const
Get the lifetime of this cookie, in seconds.
Platform and operating system specific macro definitions.
void setMaxAge(unsigned long maxAge)
Set the lifetime of this cookie, in seconds.
void setDomain(const std::string &domain)
Set the domain of this cookie.
void setPath(const std::string &path)
Set the path of this cookie.
std::string getValue() const
Get the value of this cookie.
void remove()
Mark this cookie as secure or unsecure.
bool isSecure() const
Determine if this is a secure cookie.
Abstract base class for all streamable objects.
std::string getComment() const
Get the comment of this cookie.
bool isRemoved() const
Determine if this is a removed cookie.
void setName(const std::string &name)
Set the name of this cookie.
std::string getName() const
Get the name of this cookie.
The namespace containing the cgicc library.
void setRemoved(bool removed)
Mark this cookie as secure or unsecure.
void setSecure(bool secure)
Mark this cookie as secure or unsecure.
GNU cgicc - A C++ class library for
writing CGI applications
Copyright © 1996 - 2004
Stephen F. Booth
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front Cover Texts, and with no Back-Cover
Texts.
Documentation generated Mon Apr 25 2022 14:03:04 for cgicc by
doxygen 1.8.17