1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-12-22 17:45:49 -05:00

logout session

logout session
This commit is contained in:
Eddie 2018-07-22 05:18:44 +08:00 committed by GitHub
parent 71cddc2f5a
commit 767fed2a87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
dashboard2/log/logout.php Normal file
View File

@ -0,0 +1,28 @@
<?php
// Always start this first
session_start();
// Destroying the session clears the $_SESSION variable, thus "logging" the user
// out. This also happens automatically when the browser is closed
session_destroy();
?>
<html>
<head>
<script>
function closeMe()
{
var win=window.open("","_self");
win.close();
}
</script>
</head>
<body>
<form>
<input type="button" name="Close"
onclick="closeMe()" />
</form>
</body>
</html>