ManOfSpear Posted March 26, 2010 Share Posted March 26, 2010 Hi guys. Is it possible to check if a user is logged into their google account and display their email address for them? Link to comment https://forums.phpfreaks.com/topic/196562-check-if-logged-into-google-account/ Share on other sites More sharing options...
georgebates Posted March 26, 2010 Share Posted March 26, 2010 Google probably sets a cookie when you log in but its most likely encrypted or just hard to discover. Google search might help? Link to comment https://forums.phpfreaks.com/topic/196562-check-if-logged-into-google-account/#findComment-1032073 Share on other sites More sharing options...
georgebates Posted March 26, 2010 Share Posted March 26, 2010 I just did a quick look through my google cookies using chrome and found one that had my email address in it. Its set by www.google.com and its name is "GAUSR ". You could use that one. Link to comment https://forums.phpfreaks.com/topic/196562-check-if-logged-into-google-account/#findComment-1032077 Share on other sites More sharing options...
ManOfSpear Posted March 26, 2010 Author Share Posted March 26, 2010 I just did a quick look through my google cookies using chrome and found one that had my email address in it. Its set by www.google.com and its name is "GAUSR ". You could use that one. You're right, I found the same cookie. I'll give that a shot. Thanks dude. Edit: Hmm. The only way I know of to read cookies doesn't work: echo $_COOKIE['GAUSR']; I think it's because "Only sent to creator" is set to yes for this particular cookie. Reading cookies with that field set to no works fine... Link to comment https://forums.phpfreaks.com/topic/196562-check-if-logged-into-google-account/#findComment-1032308 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.