THttpCookie class.
A THttpCookie instance stores a single cookie, including the cookie name, value, domain, path, expire, and secure.
| 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 |
|
getHttpOnly
| public boolean getHttpOnly |
() |
| Output |
|
boolean
| if true the cookie value will be unavailable to JavaScript |
| 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 |
|
setHttpOnly
| public void setHttpOnly |
(boolean $value ) |
| Input |
| boolean | $value | if true the cookie value will be unavailable to JavaScript |
| 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 |
|