Session data is getting lost in PHP version 4.4.1 which used to work in
version 4.3.3
The code is similar to the one below
Assume the file is called count.php which requires a parameter
productid;
session_start() ;
if (!isset($_SESSI ON['countAccess'])) $_SESSION['countAccess'] = 0;
else $_SESSION['countAccess']++;
echo $_SESSION['countAccess'];
if I call the script with a parameter for example
count.php?produ ctid=78
when I press refresh button $_SESSION['countAccess'] does not get
incremented but if I call it without the parameter,
$_SESSION['countAccess'] gets incremented.
I am also losing data if I call another script.
Does anyone know what's going on here?
Thank you
version 4.3.3
The code is similar to the one below
Assume the file is called count.php which requires a parameter
productid;
session_start() ;
if (!isset($_SESSI ON['countAccess'])) $_SESSION['countAccess'] = 0;
else $_SESSION['countAccess']++;
echo $_SESSION['countAccess'];
if I call the script with a parameter for example
count.php?produ ctid=78
when I press refresh button $_SESSION['countAccess'] does not get
incremented but if I call it without the parameter,
$_SESSION['countAccess'] gets incremented.
I am also losing data if I call another script.
Does anyone know what's going on here?
Thank you
Comment