开发者

how to fetch ID from other site?

开发者 https://www.devze.com 2023-04-09 03:37 出处:网络
Just l开发者_JS百科et me know how one site fetch Logged in ID of other site? e.g. If i already logged-in in Gmail,then how any other site fetch gmail email ID into their user name textbox?

Just l开发者_JS百科et me know how one site fetch Logged in ID of other site? e.g. If i already logged-in in Gmail,then how any other site fetch gmail email ID into their user name textbox?

Thanks


This would only be possible if Gmail had an API for it. You can't read an other domain's cookies, for security reasons.


Such behavior is obtained via a common loggin system. On Gmail a lot other (like StackOverflow), they use OpenID, some other uses OAuth like Twitter.

But, I don't know if you're allowed to access user's data, like your their Gmail address. I've never used OpenID before.

0

精彩评论

暂无评论...
验证码 换一张
取 消