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.
This commit is contained in:
Jyoti S 2024-10-02 07:50:04 +05:30 committed by GitHub
parent 3c02c86498
commit 134d8faa85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,7 @@ class Redirect {
public static function admin()
{
header('Cache-Control: no-store');
self::url(HTML_PATH_ADMIN_ROOT);
}
}
}