summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/drivers/Session_cookie.php
diff options
context:
space:
mode:
authordchill42 <dchill42@gmail.com>2012-08-29 14:47:05 +0200
committerdchill42 <dchill42@gmail.com>2012-08-29 14:47:05 +0200
commit88b636b06dd91807706e2d442d910fe8b6a3b50c (patch)
tree79a3e038ab0a8e3ec7a3c878eb05eb9cd9c44fa1 /system/libraries/Session/drivers/Session_cookie.php
parent3cecd8234d3bb9045e9cc41e15f603a6e87c5fac (diff)
Fixed defaults and database check, reverted redundant shutdown feature
Signed-off-by: dchill42 <dchill42@gmail.com>
Diffstat (limited to 'system/libraries/Session/drivers/Session_cookie.php')
-rwxr-xr-xsystem/libraries/Session/drivers/Session_cookie.php21
1 files changed, 5 insertions, 16 deletions
diff --git a/system/libraries/Session/drivers/Session_cookie.php b/system/libraries/Session/drivers/Session_cookie.php
index df3282cee..69e5fde14 100755
--- a/system/libraries/Session/drivers/Session_cookie.php
+++ b/system/libraries/Session/drivers/Session_cookie.php
@@ -176,10 +176,10 @@ class CI_Session_cookie extends CI_Session_driver {
* @var array
*/
protected $defaults = array(
- 'session_id',
- 'ip_address',
- 'user_agent',
- 'last_activity'
+ 'session_id' => NULL,
+ 'ip_address' => NULL,
+ 'user_agent' => NULL,
+ 'last_activity' => NULL
);
/**
@@ -281,17 +281,6 @@ class CI_Session_cookie extends CI_Session_driver {
}
/**
- * Shutdown session driver object
- *
- * @return void
- */
- public function shutdown()
- {
- // Just update the DB
- $this->_update_db();
- }
-
- /**
* Write the session data
*
* @return void
@@ -299,7 +288,7 @@ class CI_Session_cookie extends CI_Session_driver {
public function sess_save()
{
// Check for database
- if ($this->sess_use_database === FALSE)
+ if ($this->sess_use_database === TRUE)
{
// Mark custom data as dirty so we know to update the DB
$this->data_dirty = TRUE;