Login functionality updated

This commit is contained in:
Minik Gaarde Lambrecht
2021-03-26 08:35:51 +01:00
parent 067ec202d0
commit 673af052d5
12 changed files with 322 additions and 58 deletions
+3 -1
View File
@@ -1,9 +1,10 @@
<?php
session_start();
session_unset();
session_destroy();
$cookieCon = array(
'expires' => -1,
'samesite' => 'Strict',
@@ -11,5 +12,6 @@ $cookieCon = array(
);
setcookie("groupName", null, $cookieCon);
setcookie("groupId", null, $cookieCon);
setcookie("userName", null, $cookieCon);
echo http_response_code(200);