diff options
| author | Christopher Guindon | 2015-08-20 15:02:52 +0000 |
|---|---|---|
| committer | Christopher Guindon | 2015-08-20 15:02:52 +0000 |
| commit | 011cc4b92a8ee5dacf862db62591788fe6fe3fae (patch) | |
| tree | 9d2b21c21482d1f7df9515ae408e634cbc3748c6 | |
| parent | 36b6c0b35190efde4cc5a916a1721467fcd0f2f5 (diff) | |
| download | eclipse.org-common-011cc4b92a8ee5dacf862db62591788fe6fe3fae.tar.gz eclipse.org-common-011cc4b92a8ee5dacf862db62591788fe6fe3fae.tar.xz eclipse.org-common-011cc4b92a8ee5dacf862db62591788fe6fe3fae.zip | |
[Bug 431937] [site_login] can't access download stats due to cyclic
requests to login
Signed-off-by: Christopher Guindon <chris.guindon@eclipse.org>
| -rw-r--r-- | system/app.class.php | 5 | ||||
| -rw-r--r-- | system/session.class.php | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/system/app.class.php b/system/app.class.php index d7a08b26..2fe5da0e 100644 --- a/system/app.class.php +++ b/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/system/session.class.php b/system/session.class.php index 1371a3e3..50575474 100644 --- a/system/session.class.php +++ b/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; } |
