Inconsistent Session data from IE - cached sessions???
- by pedalpete
I'm trying to prevent some basic click-fraud on my site, and am building links based on session time data.
Everything works in FF, but in IE the information I'm storing in the session is somehow being changed.
When I load up the main page, I set my session variables like this
session_start();
$_SESSION['time']=$time();
I'm out putting the session value into the page, so I get something like
1275512393.
When the user clicks on a link, I send an ajax request, and that page is returning the session which I am putting into an alert.
session_start();
echo $_SESSION['time'];
die();
The alert is returning
1275512422.
Only in IE is the $_SESSION['time'] being returned different from the original $_SESSION['time']
It doesn't appear that this is a caching issue, as the times are always VERY near each other, and the second one is always after the first, but I'm not positive.