continuing to work on the remember me authentication.

This commit is contained in:
Taylor Otwell
2011-10-09 23:20:54 -05:00
parent 6178a968ea
commit 17385697c0
4 changed files with 69 additions and 34 deletions

View File

@@ -26,7 +26,7 @@ class Cookie {
}
/**
* Set a "permanent" cookie. The cookie will last 5 years.
* Set a "permanent" cookie. The cookie will last for one year.
*
* @param string $name
* @param string $value
@@ -38,7 +38,7 @@ class Cookie {
*/
public static function forever($name, $value, $path = '/', $domain = null, $secure = false, $http_only = false)
{
return static::put($name, $value, 2628000, $path, $domain, $secure, $http_only);
return static::put($name, $value, 525600, $path, $domain, $secure, $http_only);
}
/**