summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Farris <kylefarris@gmail.com>2011-08-30 04:26:07 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-10-27 16:10:34 +0200
commit426ff851c2164651228a9a9bc10869301b19dbcc (patch)
tree4ca47563b22029421e0415ab06c904de68f7d637
parent49a27745e1ba505ca72dc84f56301f7ae76d70d4 (diff)
Added the 'user_data' key to the userdata property so that sessions using a database can be deleted properly when using the table schema found in the "Saving Session Data to a Database" section of the Session Class in the user guide.
-rw-r--r--system/libraries/Session.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Session.php b/system/libraries/Session.php
index 2c8a80163..8ee08c5b2 100644
--- a/system/libraries/Session.php
+++ b/system/libraries/Session.php
@@ -317,7 +317,8 @@ class CI_Session {
'session_id' => md5(uniqid($sessid, TRUE)),
'ip_address' => $this->CI->input->ip_address(),
'user_agent' => substr($this->CI->input->user_agent(), 0, 120),
- 'last_activity' => $this->now
+ 'last_activity' => $this->now,
+ 'user_data' => ''
);