Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Trying to log out from Safari 3 (HTTP authentication with browser logout workaround), it does not work. I simply get redirected to the site home page, and I am still logged in. If I change my password and then try to log out, I get a login prompt, so looks like there is indeed some logging out happening, but I am logged in again. Looks like the different realm does not work in Safari 3?
Comments
Comment #1
Gábor HojtsyBTW I see a "session closed for Gabor" and a "session opened for Gabor" watchdog notice both for the /logout page.
Comment #2
Junyor CreditAttribution: Junyor commentedInteresting. That means the log out is working, but you're immediately logged back in because the credentials are re-used. So, yes, it seems like the work-around isn't working.
Comment #3
Darren OhI develop on a Mac and have experienced this in the past, but I can't recall the circumstances. Safari 3 is working fine.
Comment #4
Darren OhMy memory has, unfortunately, been refreshed today. Safari will not allow me to log out until I quit and restart the browser.
Comment #5
NaX CreditAttribution: NaX commentedThe problem is that the browser workaround is assuming that only 3 browsers exist in the world.
Maybe we should rather try checking for problem browsers.
I am not very good at regular expression, so this is how I would do it.
But can anybody confirm that using normal HTTP-AUTH (no workaround) works for Safari, because if it does not then this is a different problem.
Comment #6
Darren OhNormal HTTP-AUTH doesn't work, either.
Comment #7
NaX CreditAttribution: NaX commentedIf Safari 3 is a requirement of your site, I suggest you use the HTML login form until a workaround is found.
All I have found on the topic so far is not very encouraging.
http://www.the-art-of-web.com/system/safari-broken-logout/
I also still think the above code is still relevant (just not for this issue) as it is cleaner and it tries to target specific browsers for the workaround. It just needs to be better tested.
Comment #8
Junyor CreditAttribution: Junyor commentedIt makes more sense to do it as we are now, i.e. checking for browsers we know work, rather than checking for browsers we know don't work, since we only know of one browser (Mozilla) that works. Does anyone know if Safari 2.x requires the work-around?
Comment #9
Junyor CreditAttribution: Junyor commentedSafari 3.1 seems to work better when using the work-around. It won't show the password dialog when cancelling the auth dialog, but it does show the auth dialog when you log out.
Comment #10
Junyor CreditAttribution: Junyor commentedFixed on the DRUPAL-5 branch using NaX's suggestion from #5. Safari still doesn't show the password dialog when cancelling the auth dialog, but that's a separate issue.
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.