mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-23 22:30:41 +01:00
sql sanitized
This commit is contained in:
parent
3fe391dbc8
commit
199539a1c3
1 changed files with 3 additions and 1 deletions
|
@ -3,7 +3,9 @@ session_start();
|
||||||
include $_SESSION["docroot"].'/config/config.php';
|
include $_SESSION["docroot"].'/config/config.php';
|
||||||
include $_SESSION["docroot"].'/php/connect.php';
|
include $_SESSION["docroot"].'/php/connect.php';
|
||||||
|
|
||||||
$mysqli->query('DELETE FROM `sessions` WHERE `session_id`=\''.$_COOKIE["token"].'\';');
|
$deleteQuery = $mysqli->prepare('DELETE FROM `sessions` WHERE `session_id`=?;');
|
||||||
|
$deleteQuery->bind_param("s", $_COOKIE["token"]);
|
||||||
|
$deleteQuery->execute();
|
||||||
|
|
||||||
unset($_SESSION);
|
unset($_SESSION);
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
|
Loading…
Reference in a new issue