1 | <?php |
||
29 | abstract class Cookies |
||
30 | { |
||
31 | /** |
||
32 | * Retrieves the data stored in a cookie |
||
33 | * |
||
34 | * @param string $name Name of the cookie to retrieve |
||
35 | * |
||
36 | * @return string |
||
37 | **/ |
||
|
|||
38 | |||
39 | public static function get($name) |
||
45 | |||
46 | /** |
||
47 | * Sends a cookie limited to http(s) |
||
48 | * |
||
49 | * @param string $name Name of the cookie to set |
||
50 | * @param string $value The value of the cookie |
||
51 | * @param integer $expire Cookie expires at this unix timestamp |
||
52 | * @param boolean $secure Only allow this cookie for https connections |
||
53 | * |
||
54 | * @return boolean |
||
55 | **/ |
||
56 | |||
57 | public static function set($name, $value, $expire = 0, $secure = false) |
||
78 | } |
||
79 |