1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-17 19:11:29 +00:00

mobile version uses separate sid

This commit is contained in:
Andrew Dolgov
2006-05-23 06:07:38 +01:00
parent 757e8a2dae
commit 3dd46f19db
7 changed files with 15 additions and 7 deletions

View File

@@ -940,7 +940,7 @@
function basic_nosid_redirect_check() {
if (!SINGLE_USER_MODE) {
if (!$_COOKIE["ttrss_sid"]) {
if (!$_COOKIE[get_session_cookie_name()]) {
$redirect_uri = get_login_redirect();
$return_to = preg_replace('/.*?\//', '', $_SERVER["REQUEST_URI"]);
header("Location: $redirect_uri?rt=$return_to");
@@ -1684,4 +1684,8 @@
}
}
function get_session_cookie_name() {
return ((!defined('TTRSS_SESSION_NAME')) ? "ttrss_sid" : TTRSS_SESSION_NAME);
}
?>