Changeset 2991
- Timestamp:
- 07/07/2008 08:19:34 PM (5 months ago)
- Files:
-
- 1 modified
-
trunk/system/helpers/cookie.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/helpers/cookie.php
r2660 r2991 79 79 public static function delete($name, $path = NULL, $domain = NULL, $prefix = NULL) 80 80 { 81 if ( ! isset($_COOKIE[$name])) 82 return FALSE; 83 84 // Delete the cookie from globals 85 unset($_COOKIE[$name]); 86 81 87 // Sets the cookie value to an empty string, and the expiration to 24 hours ago 82 return cookie::set($name, '', - 86400, $path, $domain, FALSE, FALSE, $prefix);88 return cookie::set($name, '', -(60 * 60 * 24), $path, $domain, FALSE, FALSE); 83 89 } 84 90
