function pathos_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']); pathos_permissions_clear(); }
# Software Foundation; either version 2 of the # License, or (at your option) any later version. # # Exponent is distributed in the hope that it # will be useful, but WITHOUT ANY WARRANTY; # without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU # General Public License along with Exponent; if # not, write to: # # Free Software Foundation, Inc., # 59 Temple Place, # Suite 330, # Boston, MA 02111-1307 USA # # $Id: logout.php,v 1.7 2005/04/18 15:24:22 filetreefrog Exp $ ################################################## if (!defined('PATHOS')) { exit(''); } if (!defined('SYS_USERS')) { require_once 'subsystems/users.php'; } pathos_users_logout(); pathos_permissions_clear(); pathos_sessions_unset('uilevel'); pathos_flow_redirect();