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 53 54 55 56 57 58 59 60 61
| <?
session_start();
include("database.php");
/**
* Delete cookies - the time must be in the past,
* so just negate what you added when creating the
* cookie.
*/
if(isset($_COOKIE['cookname']) && isset($_COOKIE['cookpass'])){
setcookie("cookname", "", time()-60*60*24*100, "/");
setcookie("cookpass", "", time()-60*60*24*100, "/");
}
?>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="4;URL=Index.php" >
<title>Logging Out</title>
<style type="text/css">
<!--
body {
background-image: url(images/fond_index.jpg);
background-repeat : no-repeat;
background-attachment : fixed;
background-position: center top;
}
.style2 {color: #FF0000}
.style3 {
font-size: 24px;
font-weight: bold;
}
-->
</style>
<link href="background%20style.css" rel="stylesheet" type="text/css">
<body>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<?
/* Kill session variables */
unset($_SESSION['username']);
unset($_SESSION['password']);
$_SESSION = array(); // reset session array
session_destroy(); // destroy session.
echo "<div align='center'><h1>Déconnecté</h1><div>\n";
echo "<div align='center'><h2>Vous avez été <b>déconnecté</b> avec succès.</h2></div>";
?>
</body>
</html> |
Partager