logout session

logout session
pull/102/head
Eddie 8 years ago committed by GitHub
parent 71cddc2f5a
commit 767fed2a87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save

Powered by TurnKey Linux.