Show sourcecode
The following files exists in this folder. Click to view.
dininloggningssida.php
index.html
ovn_cook1.php
ovn_cook2.php
ovn_cook3.php
ovn_cook4.php
ovn_cook5.php
dininloggningssida.php
27 lines UTF-8 Windows (CRLF)
<?php
session_start();
if ($_SESSION["logIn"] != true){
header('Location: ovn_cook3.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<p>Hej, Du gissade rätt!</p>
<form method="post">
<input type="Submit" name="send" value="Logout">
</form>
<?php
if (isset($_POST["send"])){
$_SESSION["logIn"] = false;
header('Location: ovn_cook3.php');
}
?>
</body>
</html>