From 63df95edbaaa6f94ee8e37128a4577909a9574a1 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 30 Jan 2008 15:59:12 +0000 Subject: removed last_visit from the Session class --- system/libraries/Session.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'system/libraries') diff --git a/system/libraries/Session.php b/system/libraries/Session.php index a92db0ecc..2cdd50c23 100644 --- a/system/libraries/Session.php +++ b/system/libraries/Session.php @@ -69,8 +69,8 @@ class CI_Session { * is set in the config file. If the developer * is doing any sort of time localization they * might want to set the session time to GMT so - * they can offset the "last_activity" and - * "last_visit" times based on each user's locale. + * they can offset the "last_activity" time + * based on each user's locale. * */ @@ -326,7 +326,6 @@ class CI_Session { } // Write the cookie - $this->userdata['last_visit'] = 0; $this->sess_write(); } @@ -340,11 +339,6 @@ class CI_Session { */ function sess_update() { - if (($this->userdata['last_activity'] + $this->sess_length) < $this->now) - { - $this->userdata['last_visit'] = $this->userdata['last_activity']; - } - // Save the old session id so we know which record to // update in the database if we need it $old_sessid = $this->userdata['session_id']; -- cgit v1.2.3-24-g4f1b