Logout issue chrome & edge v89

Created on 31 March 2021, over 3 years ago
Updated 8 September 2023, about 1 year ago

Problem/Motivation

When a user navigate to user/logout the page hangs until i refresh. This only seems to occur on chrome v89 & edge v89.
This issue seems to occur at hook_user_logout when trying to add 'Clear-Site-Data header.

/**
 * Implements hook_user_logout().
 *
 * When users log out, clear all cookies, serviceworker.
 *
 * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data
 */
function pwa_user_logout($account) {
  drupal_add_http_header('Clear-Site-Data', '"storage", "cookies"');
}

Steps to reproduce

1. Login with a user.
2. Navigate to 'user/logout'

Expected: User is logged out of site

Actual: Page hangs and doesnt time out.

🐛 Bug report
Status

Postponed: needs info

Component

Code

Created by

🇬🇧United Kingdom Max Lovric

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024