Class THttpCookie
THttpCookie class.
A THttpCookie instance stores a single cookie, including the cookie name, value, domain, path, expire, and secure.
| Constructor Summary |
| public |
Constructor.
|
| Method Summary |
|
string
|
|
|
integer
|
|
|
string
|
|
|
string
|
|
|
boolean
|
|
|
string
|
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
|
| Methods Inherited From TComponent |
|
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()
|
| Constructor Details |
__construct
Constructor.
|
| Method Details |
getDomain
| public string getDomain |
() |
| Output |
|
string
| the domain to associate the cookie with |
| Exception |
|
getExpire
| public integer getExpire |
() |
| Output |
|
integer
| the time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch. |
| Exception |
|
getName
| Output |
|
string
| the name of the cookie |
| Exception |
|
getPath
| Output |
|
string
| the path on the server in which the cookie will be available on, default is '/' |
| Exception |
|
getSecure
| public boolean getSecure |
() |
| Output |
|
boolean
| whether the cookie should only be transmitted over a secure HTTPS connection |
| Exception |
|
getValue
| public string getValue |
() |
| Output |
|
string
| the value of the cookie |
| Exception |
|
setDomain
| public void setDomain |
(string $value ) |
| Input |
| string | $value | the domain to associate the cookie with |
| Output |
| Exception |
|
setExpire
| public void setExpire |
(integer $value ) |
| Input |
| integer | $value | the time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch. |
| Output |
| Exception |
|
setName
| public void setName |
(string $value ) |
| Input |
| string | $value | the name of the cookie |
| Output |
| Exception |
|
setPath
| public void setPath |
(string $value ) |
| Input |
| string | $value | the path on the server in which the cookie will be available on |
| Output |
| Exception |
|
setSecure
| public void setSecure |
(boolean $value ) |
| Input |
| boolean | $value | ether the cookie should only be transmitted over a secure HTTPS connection |
| Output |
| Exception |
|
setValue
| public void setValue |
(string $value ) |
| Input |
| string | $value | the value of the cookie |
| Output |
| Exception |
|
|