I have the following problem:
configuration for the server:
ini_set('zlib.output_compression', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.cookie_httponly', 1);
I'm trying to validate if the sessions are active
if(!isset($_SESSION)){
session_name('PruebaSesion');
session_start();
$_SESSION['prueba']='No Existe Sesión, se procede a crearla';
echo $_SESSION['prueba'];
}else{
echo 'Sesion Habilitada';
echo var_dump($_SESSION);
}
I was hoping that when doing soda I printed the second message but it does not keep printing: "No Session exists, we proceed to create it";