Welcome Guest, Not a member yet? Register   Sign In
Controller and IE issues
#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.


Messages In This Thread
Controller and IE issues - by El Forum - 02-21-2009, 09:45 PM
Controller and IE issues - by El Forum - 02-21-2009, 10:02 PM
Controller and IE issues - by El Forum - 02-22-2009, 09:22 AM
Controller and IE issues - by El Forum - 02-22-2009, 10:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB