-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogout.php
More file actions
21 lines (18 loc) · 722 Bytes
/
Copy pathlogout.php
File metadata and controls
21 lines (18 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
session_start();
$pagename="Logout"; //Create and populate a variable called $pagename
echo "<link rel=stylesheet type=text/css href=mystylesheet.css>"; //Call in stylesheet
echo "<title>".$pagename."</title>"; //display name of the page as window title
echo "<body>";
include ("headfile.html"); //include header layout file
include ("detectlogin.php");
echo "<div id='container'> ";
echo "<h4>".$pagename."</h4>"; //display name of the page on the web page
echo "<p class='updateInfo'> Thank you, ".$_SESSION['fname']." ".$_SESSION['sname']."</p>";
unset($_SESSION);
session_destroy();
echo "<p class='updateInfo'>You are now logged out</p>";
include("footfile.html"); //include head layout
echo "</body>";
?>
<!