If I execute this code, it always returns the same result. What am I doing wrong?
session_start();
if (!isset($_SESSION['count'])) {
echo "no existe, inicializamos";
$_SESSION['count'] = 0;
} else {
echo "existe, sumamos";
$_SESSION['count']++;
}
print_r($_SESSION);
The problem is that I always get count = 0