Store in GIT
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
require('../../../inc/connect.php');
|
||||
|
||||
$error = isset($_GET['error']) ? $_GET['error'] : 'You have succesfully logged out';
|
||||
|
||||
if(isSession())
|
||||
{
|
||||
$sessionid = getSession();
|
||||
|
||||
$sql = "DELETE FROM session WHERE `session`='" . $sessionid . "'";
|
||||
ExecQuery($mysqli, $sql);
|
||||
|
||||
destroySession();
|
||||
}
|
||||
|
||||
$link = ROOT . "login?error=" . $error;
|
||||
header("Location: $link");
|
||||
?>
|
||||
Reference in New Issue
Block a user