[eluser]plxkarl[/eluser]
I'm having the following problem. To simplify it this is what I'm testing:
- sessions are turned off
- compress_output is off
in one of the functions in my controller i put the following code:
Code:
session_start();
print $_SESSION['test'].'<br>';
$_SESSION['test']=time();
print $_SESSION['test'].'<br>';
and i keep refreshing that page. What I expect for every refresh (not the initial refresh) is that the first number printed will equal to the last number printed in last page visit. eg:
Code:
//2nd page visit:
222222222001
222222222020 //this number should be the same as
//3rd page visit:
222222222020 //this one
222222222043
however most of the time it is always few seconds off. when i tested that code without using codeigniter it was correct for every refresh.
It seems as if codeigniter is running that controller function twice. Does anybody know where the problem comes from?
I've also tested that code with standard codeigniter session and it still is few seconds off.