From 36e644241623461d6ac9531bdc5a61ee40b28be4 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 22 Oct 2006 01:30:50 +0000 Subject: --- system/libraries/Session.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'system/libraries') diff --git a/system/libraries/Session.php b/system/libraries/Session.php index 96a0c43b2..c1fc345d9 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php @@ -110,8 +110,10 @@ class CI_Session { } } - // Do we need encryption? - if ($this->CI->config->item('sess_encrypt_cookie') == TRUE) + // Do we need encryption? + $this->encryption = $this->CI->config->item('sess_encrypt_cookie'); + + if ($this->encryption == TRUE) { $this->CI->load->library('encrypt'); } -- cgit v1.2.3-24-g4f1b