How would Google Multiple Accounts Sign-in be implemented?
Google published that they are testing a feature that allows you to sign in 开发者_JAVA百科simultaneously to multiple Google accounts in the same browser.
Any idea how would that be implemented ?
I don’t have any inside info on how multiple accounts are actually supported, but here’s what I presume:
- Your cookie holds a security token, just like in the old days.
- The security token now maps to a set of signed-in accounts on the server.
- I’d guess there’s a notion of an active account among this set.
- When you go to a Google service that implements multiple-account support, the service pulls down your active account and drops you into that account by default.
- Then, you get presented with some UI that lets you toggle between your other signed-in accounts or lets you sign into a new account.
精彩评论