source: trunk/services/logout.php @ 103

Last change on this file since 103 was 103, checked in by scdev, 18 years ago

Q - Cleaned up Auth_File to work more like Auth_SQL, and fixed a few bugs here and there.

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