PHP Classes

File: logout.php

Recommend this page to a friend!
  Classes of Ákos Nikházy   PHP Have I Been Pwned API Search   logout.php   Download  
File: logout.php
Role: Application script
Content type: text/plain
Description: Application script
Class: PHP Have I Been Pwned API Search
Check if email addresses are in the HIBP database
Author: By
Last change: Update of logout.php
Date: 1 year ago
Size: 275 bytes
 

Contents

Class file image Download
<?php
/*
    logout.php - destroys session if password protection is on
   
    This software created by Ákos Nikházy

*/

require_once('req/settings.php');

if(
$passwordProtection)
{
   
   
session_start();
   
session_destroy();
   
}

header('location:index.php');
?>