PHP Session storing behavior into variables?
this is only happening in Chrome Has anyone ever experienced PHP sessions storing functional behavior into variables? I created the following script: <?php session_start(); $_SESSION['count'] = (isset($_SESSION['count'])) ? $_SESSION['count'] + 1 : 0; echo $_SESSION['count']; ?> You'd think this would echo 0, 1, 2, 3, etc. on each page load. However, I'm getting 1, 3, 5, 7, and so on. I found out that for some reason, $_SESSION['count'] acts as though its incrementing behavior has been stored within the variable. The reason it seems to increase by two on each page load is because when $