Browse Source

set value in cookie array when cooke is set.

Taylor Otwell 13 years ago
parent
commit
bfc04e283b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      laravel/cookie.php

+ 3 - 1
laravel/cookie.php

@@ -86,7 +86,9 @@ class Cookie {
 
 		$time = ($minutes !== 0) ? time() + ($minutes * 60) : 0;
 
-		return setcookie($name, static::sign($name, $value), $time, $path, $domain, $secure);
+		$_COOKIE[$name] = static::sign($name, $value);
+
+		return setcookie($name, $_COOKIE[$name], $time, $path, $domain, $secure);
 	}
 
 	/**