Errors after missing a logout notification

When a Discourse tab is open, and the user is logged out remotely (by strict logout or the admin), normally, you receive a push notification that tells you you were logged out and need to refresh this page.

If this notification is missed, multiple things error out.

Steps to reproduce:

  • log in to a test account
  • disconnect from the network
  • use an admin account on another device to logout the test user
  • reconnect to the network
  • try to use Discourse, e.g. open your profile

I’d expect that Discourse notices that your session is invalid, and simply refreshes the page. Instead, you get the standard :( error message. If you don’t know what caused this, it can be quite confusing until you manually reload the page.

7 Likes

I know this is ANCIENT, but I am closing this in favor of Better detection of "cookies deleted" in the application which covers the implementation in detail.

4 Likes