diff options
author | Kyle Farris <kylefarris@gmail.com> | 2011-08-30 04:26:07 +0200 |
---|---|---|
committer | Kyle Farris <kylefarris@gmail.com> | 2011-08-30 04:26:07 +0200 |
commit | f57a46b48287d7e5e5807100156e73730cf74e0c (patch) | |
tree | c3af3d5d9e16ce173a2b30389e34504f78c6b26f /system | |
parent | 70e61b5dc0b240c4a3341ca65ad9f2f5254df1b5 (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.
Diffstat (limited to 'system')
-rw-r--r-- | system/libraries/Session.php | 3 |
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' => '' ); |