Trouble logging back in after logging out using 'http' authentication ΒΆ

When using the 'http' auth_type, it can be impossible to log back in (when the logout comes manually or after a period of inactivity). Issue 11898.