diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-17 18:32:08 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-17 18:32:08 +0000 |
commit | fa5a8fde4a378c4a4940eba323de7e2e61054d36 (patch) | |
tree | 7f5ef7767dfbc36b8e138e954e34a5adb41c696f /core/controllers | |
parent | 130e26983aedac1e4bb9f26d6a82c629248075e8 (diff) |
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.
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/welcome.php | 8 |
1 files changed, 6 insertions, 2 deletions
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(); } |