Game-Jaming/Backend/Controllers/Group/Logout.php

16 lines
304 B
PHP
Raw Normal View History

2021-03-04 13:13:03 +00:00
<?php
session_start();
2021-03-26 10:00:45 +00:00
session_unset();
2021-03-26 09:24:47 +00:00
session_destroy();
2021-03-25 13:24:34 +00:00
2021-03-25 09:41:27 +00:00
$cookieCon = array(
'expires' => -1,
'samesite' => 'Strict',
'path' => '/'
);
setcookie("groupName", null, $cookieCon);
setcookie("groupId", null, $cookieCon);
2021-03-26 10:00:45 +00:00
setcookie("userName", null, $cookieCon);
2021-03-25 09:41:27 +00:00
2021-03-22 08:43:33 +00:00
echo http_response_code(200);