[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.