JInputCookie::set
Sets a value
Signature
public function set(string
$name,
[mixed
$value = 0,
[integer
$expire = 0,
[string
$path = '',
[string
$domain = '',
[boolean
$secure = false,
[boolean
$httpOnly = false]]]]]] )
Parameters
-
$name
- Name of the value to set.
-
$value
- Value to assign to the input.
-
$expire
- The time the cookie expires. This is a Unix timestamp so is in number
-
$path
- The path on the server in which the cookie will be available on. If set
-
$domain
- The domain that the cookie is available to. To make the cookie available
-
$secure
- Indicates that the cookie should only be transmitted over a secure HTTPS
-
$httpOnly
- When TRUE the cookie will be made accessible only through the HTTP protocol.
Returns
- void
Parent Implementation