summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorGreg Aker <greg.aker@ellislab.com>2011-04-20 18:36:45 +0200
committerGreg Aker <greg.aker@ellislab.com>2011-04-20 18:36:45 +0200
commit50671cf8d67c805692fec49eda33d21227a21ec2 (patch)
treee09abb9be02ae56e7c983ad86d1531b8b1ec308d /system
parent882b76bda8b701a8718960b8d639f060ae79e998 (diff)
Altered Session to use a longer match against the user_agent string. See upgrade notes if using database sessions.</li
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Session.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/libraries/Session.php b/system/libraries/Session.php
index 32317c2e6..2c8a80163 100644
--- a/system/libraries/Session.php
+++ b/system/libraries/Session.php
@@ -189,7 +189,7 @@ class CI_Session {
}
// Does the User Agent Match?
- if ($this->sess_match_useragent == TRUE AND trim($session['user_agent']) != trim(substr($this->CI->input->user_agent(), 0, 50)))
+ if ($this->sess_match_useragent == TRUE AND trim($session['user_agent']) != trim(substr($this->CI->input->user_agent(), 0, 120)))
{
$this->sess_destroy();
return FALSE;
@@ -316,7 +316,7 @@ class CI_Session {
$this->userdata = array(
'session_id' => md5(uniqid($sessid, TRUE)),
'ip_address' => $this->CI->input->ip_address(),
- 'user_agent' => substr($this->CI->input->user_agent(), 0, 50),
+ 'user_agent' => substr($this->CI->input->user_agent(), 0, 120),
'last_activity' => $this->now
);