delete cookies on logout
This commit is contained in:
parent
768fdd04bb
commit
9e4c39c435
|
@ -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);
|
Loading…
Reference in New Issue