From 650c16efae3b4b6205fd550d0f2cd85cfc3e2efa Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Wed, 20 Feb 2013 11:38:16 -0500 Subject: [PATCH] Removed session_start in controller, removed exception from Security class Security class doesn't need to bark so much, just fail and move on --- classes/Controller.php | 12 ------------ classes/Security.php | 1 - jar.php | 13 ------------- 3 files changed, 26 deletions(-) diff --git a/classes/Controller.php b/classes/Controller.php index e1f2224..7d63c04 100644 --- a/classes/Controller.php +++ b/classes/Controller.php @@ -148,18 +148,6 @@ class Controller extends Object exit; } - // Establishes the session - if (ini_get('session.auto_start') == 0) - { - if ($module->session) - { - if (session_id() == '') - { - session_start(); - } - } - } - // Validates security level if ($module->security !== false) { diff --git a/classes/Security.php b/classes/Security.php index 3d662d2..2fe69f0 100644 --- a/classes/Security.php +++ b/classes/Security.php @@ -130,7 +130,6 @@ class Security { if (session_id() == '') { - throw new Exception('Sessions must be enabled to use the Security class'); return false; } else diff --git a/jar.php b/jar.php index a1ed6ff..e2a7826 100755 --- a/jar.php +++ b/jar.php @@ -1283,18 +1283,6 @@ class Controller extends Object exit; } - // Establishes the session - if (ini_get('session.auto_start') == 0) - { - if ($module->session) - { - if (session_id() == '') - { - session_start(); - } - } - } - // Validates security level if ($module->security !== false) { @@ -7093,7 +7081,6 @@ class Security { if (session_id() == '') { - throw new Exception('Sessions must be enabled to use the Security class'); return false; } else