Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Guindon2015-08-20 14:40:29 +0000
committerChristopher Guindon2015-08-20 14:40:29 +0000
commit1c083b27a4399f72e2a85899a25face5742d7390 (patch)
tree41e2ee24029f3d06ca4daa26edd81dcb20153e49
parent7de1f77ce107a387aab272b2e7c00dc5db8a8e9e (diff)
downloaddev.eclipse.org-1c083b27a4399f72e2a85899a25face5742d7390.tar.gz
dev.eclipse.org-1c083b27a4399f72e2a85899a25face5742d7390.tar.xz
dev.eclipse.org-1c083b27a4399f72e2a85899a25face5742d7390.zip
[Bug 431937] [site_login] can't access download stats due to cyclic
requests to login Change-Id: Iffb7a55035474a9ae457850a548613b468b181c2 Signed-off-by: Christopher Guindon <chris.guindon@eclipse.org>
-rw-r--r--eclipse.org-common/system/app.class.php5
-rw-r--r--eclipse.org-common/system/session.class.php3
2 files changed, 5 insertions, 3 deletions
diff --git a/eclipse.org-common/system/app.class.php b/eclipse.org-common/system/app.class.php
index d7a08b2..2fe5da0 100644
--- a/eclipse.org-common/system/app.class.php
+++ b/eclipse.org-common/system/app.class.php
@@ -336,8 +336,9 @@ class App {
*/
function preventCaching() {
session_start();
-
- header("Cache-control: private");
+ header("Cache-Control: no-store, no-cache, private, must-revalidate, max-age=0, max-stale=0");
+ header("Cache-Control: post-check=0, pre-check=0", FALSE);
+ header("Pragma: no-cache");
header("Expires: 0");
}
diff --git a/eclipse.org-common/system/session.class.php b/eclipse.org-common/system/session.class.php
index 1371a3e..5057547 100644
--- a/eclipse.org-common/system/session.class.php
+++ b/eclipse.org-common/system/session.class.php
@@ -332,7 +332,8 @@ class Session {
}
function redirectToLogin() {
- header("Location: " . $this->login_page, 302);
+ $this->App->preventCaching();
+ header("Location: " . $this->login_page, 303);
exit;
}

Back to the top