delete cookies on logout

This commit is contained in:
RundelhausCode 2021-03-25 10:41:27 +01:00
parent 768fdd04bb
commit 9e4c39c435
1 changed files with 8 additions and 0 deletions

View File

@ -4,4 +4,12 @@ session_start();
session_destroy();
$cookieCon = array(
'expires' => -1,
'samesite' => 'Strict',
'path' => '/'
);
setcookie("groupName", null, $cookieCon);
setcookie("groupId", null, $cookieCon);
echo http_response_code(200);