devilbox/.devilbox/www/htdocs/vendor/phppgadmin-5.6.0/logout.php

21 lines
296 B
PHP
Raw Normal View History

2018-12-28 21:38:09 +00:00
<?php
/**
* Logs a user out of the app
*
* $Id: logout.php,v 1.3 2003/09/10 01:55:52 chriskl Exp $
*/
if (!ini_get('session.auto_start')) {
if (session_id() == '') {
session_name('PPA_ID');
session_start();
}
2018-12-28 21:38:09 +00:00
}
unset($_SESSION);
session_destroy();
header('Location: index.php');
?>