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:
parent
71cddc2f5a
commit
767fed2a87
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