Http Cookies utilities.
More...
|
static | set ($name, $value, $duration=60 *60 *24, $path="/") |
| Sends a cookie. More...
|
|
static | get ($name, $default=null) |
| Returns the Cookie with the name $name. More...
|
|
static | delete ($name, $path="/") |
| Removes the cookie with the name $name. More...
|
|
Http Cookies utilities.
- Author
- jc
- Version
- 1.0.0.2
Definition at line 10 of file UCookie.php.
◆ delete()
static delete |
( |
|
$name, |
|
|
|
$path = "/" |
|
) |
| |
|
static |
Removes the cookie with the name $name.
- Parameters
-
Definition at line 38 of file UCookie.php.
◆ deleteAll()
◆ get()
static get |
( |
|
$name, |
|
|
|
$default = null |
|
) |
| |
|
static |
Returns the Cookie with the name $name.
- Parameters
-
string | $name | |
string | $default | |
- Returns
- null|string
Definition at line 29 of file UCookie.php.
◆ set()
static set |
( |
|
$name, |
|
|
|
$value, |
|
|
|
$duration = 60*60*24 , |
|
|
|
$path = "/" |
|
) |
| |
|
static |
Sends a cookie.
- Parameters
-
string | $name | the name of the cookie |
string | $value | The value of the cookie. |
int | $duration | default : 1 day |
string | $path | default : / the cookie will be available within the entire domain |
Definition at line 19 of file UCookie.php.
The documentation for this class was generated from the following file: