delete cookies on logout

This commit is contained in:
2021-03-25 10:41:27 +01:00
parent 768fdd04bb
commit 9e4c39c435
+8
View File
@@ -4,4 +4,12 @@ session_start();
session_destroy(); session_destroy();
$cookieCon = array(
'expires' => -1,
'samesite' => 'Strict',
'path' => '/'
);
setcookie("groupName", null, $cookieCon);
setcookie("groupId", null, $cookieCon);
echo http_response_code(200); echo http_response_code(200);