Welcome Guest, Not a member yet? Register   Sign In
user_agent bug?
#3

[eluser]taschentuch[/eluser]
hmm no ...

Code:
CREATE TABLE IF NOT EXISTS `ci_sessions` (
  `session_id` varchar(40) COLLATE utf8_bin NOT NULL DEFAULT '0',
  `ip_address` varchar(16) COLLATE utf8_bin NOT NULL DEFAULT '0',
  `user_agent` varchar(150) COLLATE utf8_bin NOT NULL,
  `last_activity` int(10) unsigned NOT NULL DEFAULT '0',
  `user_data` text COLLATE utf8_bin NOT NULL,
  PRIMARY KEY (`session_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

varchar(150)

have found this:

Session.php

Code:
$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),
                            'last_activity'    => $this->now
                            );
.
.
.
        if ($this->sess_match_useragent == TRUE AND trim($session['user_agent']) != trim(substr($this->CI->input->user_agent(), 0, 50)))

so.. its not a bug its a feature Big Grin

have changed 50 to 150 now


Messages In This Thread
user_agent bug? - by El Forum - 11-01-2009, 02:13 AM
user_agent bug? - by El Forum - 11-01-2009, 06:57 AM
user_agent bug? - by El Forum - 11-01-2009, 05:32 PM
user_agent bug? - by El Forum - 11-01-2009, 05:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB