Location: PHPKode > projects > ProjectPress > projectpress/logout.php
<?php
/**
 * ProjectPress logout
 *
 * @package ProjectPress
 * @since 2.0
 */

session_start();

define('access',true);
include(dirname(__FILE__) . '/config.inc.php');
include(PM_DIR . 'pm-includes/global.inc.php');
require(PM_DIR . 'pm-includes/functions.php');

$_SESSION['logged'] = '';
$_SESSION['username'] = '';
$_SESSION['userID'] = '';

session_destroy();
pm_redirect(PM_URI . '/login.php');
Return current item: ProjectPress