From aed1443bf16d41bb5343467a17c51ec650a3aec6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 12 Feb 2012 16:15:17 -0600 Subject: [PATCH] cleaning up the cookie class. --- laravel/cookie.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/laravel/cookie.php b/laravel/cookie.php index fd605839..bbf72042 100644 --- a/laravel/cookie.php +++ b/laravel/cookie.php @@ -31,19 +31,18 @@ public static function send() { if (headers_sent()) return false; - // All cookies are stored in the "jar" when set and not sent - // directly to the browser. This simply makes testing all of - // the cookie functionality easier since the cooke jar can - // be inspected by the developer in tests. + // All cookies are stored in the "jar" when set and not sent directly to + // the browser. This simply makes testing all of the cookie stuff very + // easy since the jar can be inspected by the tests. foreach (static::$jar as $cookie) { extract($cookie); $time = ($minutes !== 0) ? time() + ($minutes * 60) : 0; - // A cookie payload can't exceed 4096 bytes, so if the - // payload is greater than that, we'll raise an error - // to warn the developer. + // A cookie payload can't exceed 4096 bytes, so if the payload is greater + // than that, we'll raise an error to warn the developer since it could + // cause serious session problems. $value = static::sign($name, $value); if (strlen($value) > 4000)