From 6590b54f44c26be6ba76b59d25f6e30cffa54698 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 8 Aug 2011 13:22:41 -0500 Subject: [PATCH] Refactor the session class. --- system/session.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/session.php b/system/session.php index 5891e9b0..cf12c5b5 100644 --- a/system/session.php +++ b/system/session.php @@ -65,7 +65,10 @@ public static function load($id) static::$session = array('id' => Str::random(40), 'data' => array()); } - if ( ! static::has('csrf_token')) static::put('csrf_token', Str::random(16)); + if ( ! static::has('csrf_token')) + { + static::put('csrf_token', Str::random(16)); + } static::$session['last_activity'] = time(); }