PHP-MySQL-Blog-Website-with.../logout.php
2023-03-07 07:53:47 +06:30

8 lines
No EOL
162 B
PHP

<?php
require 'config/constants.php';
//destroy all sessions and redirect user to login page
session_destroy();
header('location: ' . ROOT_URL);
die();
?>