Hey guys , I am facing an issue, After Facebook login when i click the logout button, the page gets stuck. There is no redirection to index page . However if i reload the page it is redirected to the index page indicating that the session is destroyed. Now this shows that there is some error while redirecting after logout button is clicked. Can anyone help me finding the solution for this issue.
This happens in mobile device , in web it is working fine.
The logout is successful, it’s just not refreshing/redirecting successfully.
There’s no error popup, nor anything in the /logs that I can see (even with verbose logging). There’s nothing in the browser console from the initial logout attempt, but errors start after subsequent logout attempts (trying to logout when I’m technically already logged out):
This is very similar to a recent bug I reported to Apple.
Can you try to repro after setting same site cookies to Disabled on Try? You will need to logoff/login again after changing the setting for is to take effect.
Can you confirm this is also reproducible on meta? Also confirm this is only on mobile? Does this also happen if you add ?mobile_view=1 to the url to force mobile view on desktop?
I have not checked in meta, only checked in https://try.discourse.org/. Yes it happens only in mobile IOS safari and no it does not happen when i add ?mobile_view=1 to the url to force mobile view on desktop. @tshenry please confirm my observations.
I had to disable Discourse offline because of this bug, even though the feature works fine but we default to strict cookies who triggers bugs on Safari.
@tshenry, i am still facing the issue after setting “same site cookies” to disabled. However, the redirect worked fine after trying for the first time. But when i tried again it did not worked.
Also i checked in try also, it didn’t worked the second time.
Hmm, you’re right… I think I got excited after seeing it work the first time and failed to try subsequent times
I do have a new note to add - the logout redirect seems to work directly after receiving an “Authorization timed out, or you have switched browsers. Please try again,” message. It seems to happen when trying to log in very quickly after logging out.
The clip below shows a failed logout redirect at first, then at 13 seconds, it shows the redirect working after the message was displayed.