Last change
on this file since 238 was
135,
checked in by scdev, 18 years ago
|
Q - Finished integrating singleton methods into existing code. Renamed SessionCache? to Cache, and renamed methods in Cache and Prefs
|
File size:
564 bytes
|
Line | |
---|
1 | <?php |
---|
2 | /** |
---|
3 | * logout.php |
---|
4 | * Code by Strangecode :: www.strangecode.com :: This document contains copyrighted information |
---|
5 | */ |
---|
6 | |
---|
7 | if (isset($auth) && method_exists($auth, 'getVal')) { |
---|
8 | // Delete the current user's record locks. |
---|
9 | require_once 'codebase/lib/RecordLock.inc.php'; |
---|
10 | $lock =& RecordLock::getInstance($auth); |
---|
11 | $lock->removeAll($auth->getVal('user_id')); |
---|
12 | } |
---|
13 | |
---|
14 | // Logout. |
---|
15 | $auth->clearAuth(); |
---|
16 | |
---|
17 | $app->raiseMsg(sprintf(_("Your session has been logged-out."), null), MSG_SUCCESS, __FILE__, __LINE__); |
---|
18 | $app->dieURL($app->getParam('redirect_home_url')); |
---|
19 | |
---|
20 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.