clearIdFromCookie()
deleteAllCookies()
deleteCookie()
getCookie()
setCookie()
_setCookieInternal()
__construct()
Helper class for manipulating cookies with XenForo-specific options.
package | XenForo_Helper |
---|
clearIdFromCookie(integer | string $id, $cookieName, \Zend_Controller_Request_Http $request) : array
The cookie must be a comma-separated ID list.
integer
string
\Zend_Controller_Request_Http
array
Exploded cookie arraydeleteAllCookies(array $skip, array $flags)
array
List of cookies to skip
array
List of flags to apply to individual cookies. [cookie name] => {httpOnly: true/false, secure: true/false/null}
deleteCookie(string $name, boolean $httpOnly, boolean | null $secure) : boolean
The settings must match the settings when it was created.
string
Name of cookie
boolean
Whether the cookie should be available via HTTP only
boolean
null
Whether the cookie should be available via HTTPS only; if null, value is true if currently on HTTPS
boolean
True if deletedgetCookie(string $name, \Zend_Controller_Request_Http $request) : string | array | false
This automatically adds the necessary prefix.
string
Cookie name without prefix
\Zend_Controller_Request_Http
string
array
false
False if cookie isn't foundsetCookie(string $name, string $value, integer $lifetime, boolean $httpOnly, boolean | null $secure) : boolean
string
Name of the cookie
string
Value of the cookie
integer
The number of seconds the cookie should live from now. If 0, sets a session cookie.
boolean
Whether the cookie should be available via HTTP only
boolean
null
Whether the cookie should be available via HTTPS only; if null, value is true if currently on HTTPS
boolean
True if set_setCookieInternal(string $name, string | false $value, integer $expiration, boolean $httpOnly, boolean | null $secure) : boolean
string
Name of the cookie
string
false
Value of the cookie, false to delete
integer
Time stamp the cookie expires
boolean
Whether the cookie should be available via HTTP only
boolean
null
Whether the cookie should be available via HTTPS only; if null, value is true if currently on HTTPS
boolean
True if set__construct()
Use statically.