fixed bug in auth cookie removal.

This commit is contained in:
Taylor Otwell
2012-01-05 11:52:42 -06:00
parent 2733e5ceba
commit 264cc51294
4 changed files with 24 additions and 5 deletions

View File

@@ -128,11 +128,15 @@ class Cookie {
* Delete a cookie.
*
* @param string $name
* @param string $path
* @param string $domain
* @param bool $secure
* @param bool $http_only
* @return bool
*/
public static function forget($name)
public static function forget($name, $path = '/', $domain = null, $secure = false, $http_only = false)
{
return static::put($name, null, -2000);
return static::put($name, null, -2000, $path, $domain, $secure, $http_only);
}
}