summaryrefslogtreecommitdiff
path: root/logout.php
diff options
context:
space:
mode:
Diffstat (limited to 'logout.php')
-rw-r--r--logout.php9
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");
+ }
?>