delete cookies on logout
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user