Welcome Guest, Not a member yet? Register   Sign In
UserAgent class and sessions in IE
#1

[eluser]Unknown[/eluser]
For some reason when I do:

$this->load->library('user_agent');
echo $this->agent->browser();

In IE 8 (and possibly earlier) its outputting "Chrome" instead of "Internet Explorer" when first logging into the session (ie set_userdata)

Reloading the page from there reports "Internet Explorer", this breaking the session.

I know there is a match_user_agent setting in config.php but I am a bit perplexed at why it's reporting the wrong agent.

I have no Chrome Frame tags in my page and nothing in httpd.conf. But Google Chrome is installed.

The log in page itself reports "Internet Explorer" it's only the page that

The way it that it goes to the initial page (where Chrome page is rpeorted) is like this:

$this->session->set_userdata($newdata);
redirect('/welcome/home/', 'location');

Something strange I just noticed
If you go to http://www.articad.biz/yourroomplan/inde...login_page

and click reload... it says its Internet Explorer, but if you put a cursor in the address bar and press enter it thinks its Chrome?? This is in IE9

In IE8 I think its Chrome all the way lol










Theme © iAndrew 2016 - Forum software by © MyBB