| 
 Posted by jkmambo on 11/24/05 08:04 
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($_SESSION['countAccess']))  $_SESSION['countAccess'] = 0; 
else $_SESSION['countAccess']++; 
 
echo $_SESSION['countAccess']; 
 
 
if I call the script with a parameter for example 
count.php?productid=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
 
  
Navigation:
[Reply to this message] 
 |