User authentication setup - first test
This commit is contained in:
27
var/www/logout.php
Normal file
27
var/www/logout.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
session_start();
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>FriendBook Logout</title>
|
||||
<meta http-equiv="content-type"
|
||||
content="text/html; charset=utf-8"/>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
session_unset(); // remove all session variables
|
||||
session_destroy(); // destroy the session
|
||||
?>
|
||||
|
||||
<style>
|
||||
body {
|
||||
background-color: #3B5998;
|
||||
}
|
||||
</style>
|
||||
<h2><font color="white">You have been successfully logged out.</h2>
|
||||
<button type="button" onclick="window.location.href = 'friends.html'">Login again? (FIXME)</button>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user