This question is an exact duplicate of:
Below is a simple test code that I've produced from a bug I am facing right now.
session_start();
if(isset($_SESSION['views']))
$_SESSION['views'] = $_SESSION['views']+ 1;
else
$_SESSION['views'] = 1;
$views = "hi";
echo "views = ". $_SESSION['views'];
from what i believe $views
and $_SESSION['views']
are completely different things. On a local test the script gives proper response first time 1 then 2 and then 3 and on and on.
The bug only exist on ipage hosting, there the same code gives output hi
each time.
What am i missing?
</div>