PHP-MySQL-Blog-Website-with.../logout.php

8 lines
162 B
PHP
Raw Permalink Normal View History

2023-01-15 01:22:14 +00:00
<?php
require 'config/constants.php';
//destroy all sessions and redirect user to login page
session_destroy();
header('location: ' . ROOT_URL);
die();
2023-01-15 01:22:14 +00:00
?>