source: trunk/services/logout.php @ 1

Last change on this file since 1 was 1, checked in by scdev, 19 years ago

Initial import.

File size: 496 bytes
Line 
1<?php
2/**
3 * logout.php
4 * Code by Strangecode :: www.strangecode.com :: This document contains copyrighted information
5 */
6
7require_once 'codebase/lib/RecordLock.inc.php';
8
9// Delete this admin's record locks.
10$lock =& RecordLock::getInstance($GLOBALS['auth']);
11$lock->removeAll($auth->getVal('user_id'));
12
13// Logout.
14$auth->clearAuth();
15
16App::raiseMsg(sprintf(_("Your session has been logged-out."), null), MSG_SUCCESS, __FILE__, __LINE__);
17App::dieURL(App::getParam('redirect_home_url'));
18
19?>
Note: See TracBrowser for help on using the repository browser.