Hi
I am experiencing issues with session where if i put the following code on a page the counter will increment by one every time i reload the page.
session_start();
if(isset($_SESSION['views']))
$_SESSION['views'] = $_SESSION['views']+ 1;
else
$_SESSION['views'] = 1;
if i put the above code in an if statement where it only runs when you hit a button and display the number in the session the session is always empty.
Could there be a php.ini issue?
Thanks in advance