123456789101112131415 |
- <?php
- class Cookie{
- public static function set($key, $val, $expire = 0, $path = "", $domain = "", $secure = false, $httpOnly = false){
- return setcookie($key, $val, $expire, $path, $domain, $secure, $httpOnly);
- }
-
- public static function get($key){
- return isset($_COOKIE[$key]) ? $_COOKIE[$key] : null;
- }
-
- public static function del($key){
- return self::set($key, "");
- }
- }
|