Commit bc51ec3d authored by Taylor Otwell's avatar Taylor Otwell

Refactoring the cookie class.

parent 5e28cd08
......@@ -56,10 +56,7 @@ class Cookie {
*/
public static function put($name, $value, $minutes = 0, $path = '/', $domain = null, $secure = false, $http_only = false)
{
if ($minutes < 0)
{
unset($_COOKIE[$name]);
}
if ($minutes < 0) unset($_COOKIE[$name]);
return setcookie($name, $value, ($minutes != 0) ? time() + ($minutes * 60) : 0, $path, $domain, $secure, $http_only);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment