forked from phongdong/match-all
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logout.php
36 lines (30 loc) · 894 Bytes
/
logout.php
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
<?php session_start(); ?>
<?php require_once('config.php'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include 'header_nav.inc.php'; ?>
<title>LOGOUT</title>
</head>
<body>
<!-- include header navigation -->
<?php $current_page = "logout.php" ?>
<?php include 'header_nav.inc.php'; ?>
<section id="page">
<?php
// Inialize session
//session_start();
// Delete certain session
//unset($_SESSION['username']);
unset($_SESSION[$g_login_session_key]);
// Delete all session variables
session_destroy();
// Jump to login page
Redirect("login.php");
?>
</section>
<!-- end #page -->
<!-- include footer -->
<?php include 'footer.inc.php'; ?>
</body>
</html>