Commit 374f72f5 authored by Taylor Otwell's avatar Taylor Otwell

Provide immediate access to set cookies.

parent 570b431c
......@@ -88,7 +88,14 @@ class Cookie {
{
if (headers_sent()) return false;
if ($minutes < 0) unset($_COOKIE[$name]);
if ($minutes < 0)
{
unset($_COOKIE[$name]);
}
else
{
$_COOKIE[$name] = $value;
}
$time = ($minutes !== 0) ? time() + ($minutes * 60) : 0;
......
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