1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-12-23 01:55:49 -05:00
xlxd/dashboard2/log/logout.php
Eddie 767fed2a87
logout session
logout session
2018-07-22 05:18:44 +08:00

29 lines
429 B
PHP

<?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>