-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogout.php
More file actions
52 lines (46 loc) · 1.66 KB
/
logout.php
File metadata and controls
52 lines (46 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
require_once "./functions.php";
// Initialize the session
session_start();
// Unset all of the session variables
$_SESSION = array();
if (isset ($_COOKIE['user_id'])) {
unset($_COOKIE['user_id']);
setcookie('user_id', null, -1, '/');
return true;
}
// Destroy the session.
session_destroy();
// Redirect to login page
header("location: login.php");
// exit;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Logout | Lijs</title>
<?php echo '<link rel="stylesheet" href="' . auto_version('styles/output.css') . '" type="text/css">'; ?>
<?php echo '<script src="' . auto_version('scripts/functions.js') . '"></script>'; ?>
<?php echo '<link rel="manifest" href="' . auto_version('manifest.json') . '">'; ?>
<link rel="icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<script type="module">
import 'https://cdn.jsdelivr.net/npm/@pwabuilder/pwaupdate';
const el = document.createElement('pwa-update');
document.body.appendChild(el);
</script>
</head>
<body>
<header id="header" class="flex items-center justify-between w-full py-5 mt-10 text-3xl px-7">
<p class="font-semibold">Je bent uitgelogd</p>
</header>
<div class="flex flex-col mt-10 px-7">
<p>Je bent nu uitgelogd.</p>
<p>Je wordt doorgestuurd naar de login pagina.</p>
<p>Als je niet automatisch doorgestuurd wordt, klik dan <a class="underline " href="login.php">hier</a>.</p>
</div>
</body>
</html>