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 ++-------- user_guide/changelog.html | 1 + 2 files changed, 3 insertions(+), 8 deletions(-) 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']; diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 1affd9dba..c37b0951c 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -114,6 +114,7 @@ Change Log
  • Changed the load protocol of Models to allow for extension.
  • Strengthened the Encryption library to help protect against man in the middle attacks when MCRYPT_MODE_CBC mode is used.
  • Added Flashdata variables, session_id regeneration and configurable session update times to the Session class.
  • +
  • Removed 'last_visit' from the Session class.
  • Added a language entry for valid_ip validation error.
  • Modified prep_for_form() in the Validation class to accept arrays, adding support for POST array validation (via callbacks only)
  • Added an "integer" rule into the Validation library.
  • -- cgit v1.2.3-24-g4f1b