Inconsistent Session data from IE - cached sessions???
Posted
by pedalpete
on Stack Overflow
See other posts from Stack Overflow
or by pedalpete
Published on 2010-06-02T21:08:41Z
Indexed on
2010/06/02
21:14 UTC
Read the original article
Hit count: 188
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.
© Stack Overflow or respective owner