id/signout.php

12 lines
271 B
PHP
Raw Normal View History

2023-11-06 16:38:18 +00:00
<?php
2023-11-19 12:24:38 +00:00
$_SESSION['id'] = null;
$_SESSION['auth'] = false;
2024-02-17 12:04:47 +00:00
setcookie('keep_me_logged_in', '', time()-3600);
2023-11-06 16:38:18 +00:00
session_destroy();
?>
<p>You've been signed out successfully. You may close the page.</p>
<p><a href="/signin">Sign back in</a> ~ <a href="/">Go to home</a></p>