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

15 lines
247 B
PHP
Raw Normal View History

2021-03-04 13:13:03 +00:00
<?php
session_start();
2021-03-22 08:43:33 +00:00
session_destroy();
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-22 08:43:33 +00:00
echo http_response_code(200);