From 134d8faa8559fb2cca22589699995b22dcdad6a8 Mon Sep 17 00:00:00 2001 From: Jyoti S <16028156+AmritasyaPutra@users.noreply.github.com> Date: Wed, 2 Oct 2024 07:50:04 +0530 Subject: [PATCH] Logout redirection call must reach the server On Firefox 130 the logout (301 redirection to admin page) is getting cached and hence the logout action does not take place. Adding Cache-control to specify the browser to not-cache this is required for logout to work properly. --- bl-kernel/helpers/redirect.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bl-kernel/helpers/redirect.class.php b/bl-kernel/helpers/redirect.class.php index 323d9185..66c4aedf 100644 --- a/bl-kernel/helpers/redirect.class.php +++ b/bl-kernel/helpers/redirect.class.php @@ -24,6 +24,7 @@ class Redirect { public static function admin() { + header('Cache-Control: no-store'); self::url(HTML_PATH_ADMIN_ROOT); } -} \ No newline at end of file +}