mirror of
https://github.com/LX3JL/xlxd.git
synced 2025-12-06 07:42:01 +01:00
logout session
logout session
This commit is contained in:
parent
91d6e69d74
commit
84fa6c6d10
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 a new issue