Welcome Guest, Not a member yet? Register   Sign In
Controller and IE issues
#1

[eluser]Whis[/eluser]
Hi,

With Internet explorer 7, sometimes, my function in the new called controller is not executed. I'm just redirected on my default controller (and the index function). It doesn't happen on Firefox. Don't understand why Confused.

Any ideas?

Tanks.
#2

[eluser]TheFuzzy0ne[/eluser]
That's a really strange issue, but it's unlikely to have anything to do with IE. Do you have anything out of the ordinary in your .htaccess or do you have any custom routes set up?

Also, is the right URI displayed in the address bar?
#3

[eluser]Whis[/eluser]
It seems that when I visit a page that I have already visited, IE doesn't renew variables but load those which have been stored at the first load.

For example:

I execute this lines in the constructor of my controller (function stored in a helper file which is auto-loaded):

Code:
$i = $CI->session->userdata('test') + 1;
$CI->session->set_userdata('test', $i);

Then I display my variable stored in each view I visit:

Code:
<?= $this->session->userdata('test'); ?>


When I visit some views, I get this (function called , $i):

1) index, 1 => OK
2) inscription, 2 => OK
3) inscription/part, 3 => OK
4) inscription, 2 => WRONG (should be 4)
5) inscription/project, 4 OK/WRONG (should be 5 but has been incremented)

Any ideas ? I get mad ...

EDIT: I use the database sessions.
#4

[eluser]Whis[/eluser]
I have taken a look on my archives, and I think I have this bug since I use the CI sessions ...




Theme © iAndrew 2016 - Forum software by © MyBB