I'm trying to make a comparison after session_start();
What I was thinking and trying to do is:
<?php
session_start();
if($_SESSION['id_usuario']=NULL) {
$_SESSION['id_nivel']=3;
if($_SESSION['id_usuario']= 'X') {
}
}
else {
header("Location: register.php");
}
?>
Is there a possibility to do it? Any help to achieve it?