diff options
| author | Andrew Dolgov <fox@bah.spb.su> | 2005-11-20 11:14:38 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@bah.spb.su> | 2005-11-20 11:14:38 +0100 |
| commit | 8cb7480484d03a06663ac031ad3db33ea46b77ae (patch) | |
| tree | a5d486db88c66f3d2177917195e633f2b9ebc242 /logout.php | |
| parent | 2317ffaae70ec345add4eb90c4f79d74ca831e8b (diff) | |
fix http basic authentication
Diffstat (limited to 'logout.php')
| -rw-r--r-- | logout.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/logout.php b/logout.php index c43d86cb0..cfc9fd034 100644 --- a/logout.php +++ b/logout.php @@ -1,12 +1,17 @@ <? session_start(); + require_once "config.php"; + $_SESSION["uid"] = null; $_SESSION["name"] = null; $_SESSION["access_level"] = null; session_destroy(); - header("Location: login.php"); - + if (!USE_HTTP_AUTH) { + header("Location: login.php"); + } else { + header("Location: tt-rss.php"); + } ?> |