if(empty($_SESSION['count'])){
$_SESSION['count']=99;
}else{
$_SESSION['count']--;
}
echo $_SESSION['count'];
In Firefox, I get decremented value but in IE and Chrome it does not decrement the value as well as setting the value. Can anyone tell what’s the problem?
This seems to work. Notice that i check for isset($_SESSION[‘temp’]) here, not empty($_SESSION[‘count’]: