0

When I logout in my browser (Firefox) from Google account, I can see that some pages in other tabs (not all belong to Google ecosystem) are refreshed and I guess that some logout notification was delivered by something to them. How does it work?

1 Answer 1

3

It's going to depend on how each application has implemented Google's API for user authentication. Most likely there's some Websocket or AJAX calls going on in the background polling Google to see if you're logged on. When it finds that you're not the calling app changes your status.

2
  • It's more likely that the application would be polling for something else such as updates of actual displayed information, possibly using a websocket in some scenarios. The log-off might be an error message passed since the user is no longer authenticated.
    – nanofarad
    Aug 18, 2015 at 18:46
  • Ah, yes. Websockets are probably more likely nowadays. Thanks @hex. I'll update my answer.
    – ale
    Aug 18, 2015 at 19:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.