mirror of
https://github.com/ShaYmez/xlxd.git
synced 2024-12-22 17:45:49 -05:00
commit
0bfa70fba0
28
dashboard2/log/logout.php
Normal file
28
dashboard2/log/logout.php
Normal 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>
|
Loading…
Reference in New Issue
Block a user