コード例 #1
0
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
if (!defined('EXPONENT')) {
    exit('');
}
if (!defined('SYS_USERS')) {
    require_once 'subsystems/users.php';
}
exponent_users_logout();
exponent_permissions_clear();
exponent_sessions_unset('uilevel');
if (isset($_SESSION['nav_cache']['kids'])) {
    unset($_SESSION['nav_cache']['kids']);
}
if (isset($_SESSION['containers_cache'])) {
    unset($_SESSION['containers_cache']);
}
if (isset($_SESSION['image_cache'])) {
    unset($_SESSION['image_cache']);
}
if (isset($_SESSION['resource_cache'])) {
    unset($_SESSION['resource_cache']);
}
exponent_flow_redirect();
コード例 #2
0
function exponent_sessions_logout()
{
    global $db;
    if (isset($_SESSION['ticket'])) {
        $db->delete('sessionticket', "ticket='" . $_SESSION[SYS_SESSION_KEY]['ticket'] . "'");
    }
    unset($_SESSION[SYS_SESSION_KEY]['ticket']);
    unset($_SESSION[SYS_SESSION_KEY]['user']);
    unset($_SESSION[SYS_SESSION_KEY]['vars']['display_theme']);
    exponent_permissions_clear();
}