Show sourcecode
The following files exists in this folder. Click to view.
webbserverprogrammering/exercises/cookie-session/
c-s.php
c-s_1.php
c-s_2.php
c-s_3.php
c-s_3.php
25 lines UTF-8 Windows (CRLF)
<?php
error_reporting(-1);
ini_set('display_errors', 1);
ini_set('output_buffering', 0);
session_start();
?>
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cookie-Session_3</title>
</head>
<body>
<?php
$_SESSION['correct_password'] = "Galenskap1!";
$_SESSION['user_password'] = isset($_POST["user_password"]) ? trim($_POST["user_password"]) : '';
?>
<p>För att komma åt min hemlighet, skriv in det rätta lösenordet...</p>
<input type="password" name="password" placeholder="Skriv in den hemliga koden"></input>
<?php
?>
</body>
</html>