diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-01-30 16:59:12 +0100 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-01-30 16:59:12 +0100 |
commit | 63df95edbaaa6f94ee8e37128a4577909a9574a1 (patch) | |
tree | 1d58a0f81230ca9eb389756e74f61a5d349325a2 | |
parent | c38c7037d0e8028912030fa3317b6180e62d8bd8 (diff) |
removed last_visit from the Session class
-rw-r--r-- | system/libraries/Session.php | 10 | ||||
-rw-r--r-- | 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 <li>Changed the load protocol of Models to allow for extension.</li>
<li>Strengthened the Encryption library to help protect against man in the middle attacks when MCRYPT_MODE_CBC mode is used.</li>
<li>Added Flashdata variables, session_id regeneration and configurable session update times to the <a href="./libraries/sessions.html">Session class.</a></li>
+ <li>Removed 'last_visit' from the Session class.</li>
<li>Added a language entry for valid_ip validation error.</li>
<li>Modified prep_for_form() in the Validation class to accept arrays, adding support for POST array validation (via callbacks only)</li>
<li>Added an "integer" rule into the <a href="./libraries/validation.html">Validation</a> library.</li>
|