-4
Hello I have a form creates a user session and password, which creates a session according to the information sent by the form and, in index.php, it checks if the session is "set".
PHP:
if(!isset($_SESSION['senha'])) {
header("Location: login.php");
exit();
}
This code works super well, but I want it to just check a certain value, for example if the $_SESSION['senha']
is equal to 123
, if so, it redirects to login.php, otherwise it continues in index.php.