-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogout.php
More file actions
33 lines (31 loc) · 727 Bytes
/
logout.php
File metadata and controls
33 lines (31 loc) · 727 Bytes
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
<?php
session_start();
$user = $_SESSION['user'];
session_destroy();
?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Handling login via sessions in PHP
Author: Elena Machkasova
Last modified: 4/17/08
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="REFRESH" content="3; ./posts.php">
<title>
Handling user logout.
</title>
<link rel="stylesheet" type="text/css" href="forum.css" />
</head>
<body>
<p>
<?php
print "<div class='newpost'><h3>Goodbye, ".$_SESSION['user']."!<h3><br/>\n";
print "<p>Please wait to be directed back to the main page<br/>\n";
print "</p></div>";
?>
</p>
</body>
</html>