]> git.wh0rd.org - tt-rss.git/blob - mobile/logout.php
mobile version uses separate sid
[tt-rss.git] / mobile / logout.php
1 <?
2 require_once "functions.php";
3
4 require_once "../config.php";
5 require_once "../functions.php";
6 require_once "../sessions.php";
7
8 logout_user();
9
10 if (!USE_HTTP_AUTH) {
11 $url_path = get_script_urlpath();
12
13 if (ENABLE_LOGIN_SSL) {
14 $protocol = "https";
15 } else {
16 $protocol = "http";
17 }
18
19 $redirect_base = "$protocol://" . $_SERVER["SERVER_NAME"] . $url_path;
20
21 header("Location: $redirect_base/login.php");
22 } else { ?>
23
24 <html>
25 <head>
26 <title>Tiny Tiny RSS : Logout</title>
27 <link rel="stylesheet" type="text/css" href="tt-rss.css">
28 <body>
29 <h1>You have been logged out.</h1>
30
31 <p><b>Warning:</b>
32 As there is no way to reliably clear HTTP Authentication
33 credentials from your browser, it is recommended for you to close
34 this browser window, otherwise your browser could automatically
35 authenticate again using previously supplied credentials, which
36 is a security risk.</p>
37
38 </body>
39 </html>
40 <? } ?>