Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

At this point I don't want to interface w/ google account, I just would like to know if they are logged in to a google account or not, and then serve slightly different links if they are|aren't. I'm using PHP and strict (where possible) HTML 4.

share|improve this question

If you're not using Google as an OpenID provider I don't think there is any way to know. That kind of information is kept off limits as a security precaution.

share|improve this answer
There was a method discussed in the answer on this SO post, however, it's doubtful that the method will work reliably for organizations which have an interest in maintaining users' privacy: stackoverflow.com/questions/5233560/… – danlefree Mar 30 '11 at 14:03
One day the Internet will be secure. I just hope it's in my lifetime. – John Conde Mar 30 '11 at 14:17

I hope this is not possible. What you are trying to do is to access the type of information others would not want to share with you. I know this does not address your question directly but maybe there is another way to achieve what you want to achieve?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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