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

8 lines
160 B
PHP
Raw 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;
?>