From fa5a8fde4a378c4a4940eba323de7e2e61054d36 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 17 Dec 2008 18:32:08 +0000 Subject: Switch from cookie sessions to database sessions. We can't use cookie sessions; it encodes all the value into the cookie which means little/no security, transfer costs, and storage limits. --- core/controllers/welcome.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/controllers') diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index b341b1af..9ac22318 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -21,7 +21,11 @@ class Welcome_Controller extends Template_Controller { public $template = "welcome.html"; function index() { - Session::instance(); + try { + $session = Session::instance(); + } catch (Exception $e) { + } + $this->template->syscheck = new View("welcome_syscheck.html"); $this->template->syscheck->errors = $this->_get_config_errors(); $this->template->syscheck->modules = array(); @@ -52,7 +56,7 @@ class Welcome_Controller extends Template_Controller { $this->_create_directories(); - if (Session::instance()->get("profiler", false)) { + if (!empty($session) && $session->get("profiler", false)) { $profiler = new Profiler(); $profiler->render(); } -- cgit v1.2.3