root/trunk/admin/logout.php
| Revision 1736, 229 bytes (checked in by jeena, 4 months ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | session_start(); |
| 3 | session_destroy(); |
| 4 | |
| 5 | $hostname = $_SERVER['HTTP_HOST']; |
| 6 | $path = dirname(dirname($_SERVER['SCRIPT_NAME'])); |
| 7 | |
| 8 | header('Location: http://'.$hostname.($path == '/' ? '' : $path).'/'); |
| 9 | ?> |
Note: See TracBrowser
for help on using the browser.
