hello the problem is strange because when I evaluated the session variable on my local server if it executes my logic correctly, but when I run the same code on the remote server it does not execute my if statement that it may be due, the The server I use is 000webhost.com, do you think the problem is because the server is free? my code is this:
<?php if(isset($_SESSION['cnombre'])){// si la variable existe se manda a otra pagina pagina
header('location:../ope/datoscotizacion.php');
?>
<?php }else{
//a qui hay codigo que si, la variable de session: cnombre No existe se ejecutara, no pongo el codigo de esta parte por que es muy extenso.
}
?>
and if I run the same code on my local server if it works wonderfully I do not know what to expect, they believe that hosting 0000webhost supports comparison of session variables, believe that if I run it on a pay server, I'll be happy I'm new.