I use the examples provided in "google-api-php-client" -Library (http://code.google.com/p/google-api-php-client/) to implement the user login and authorization on my site with using google services. I have not made any changes to the examples, except for adding my client ID, etc.
Authorization itself works fine: users can log in, and I can get the information provided. However, when you exit the page, the entire authorization procedure is repeated again; users are not remembered and must again grant permissions, which is something like annoying and not typical for google logins, as I know them.
For example: In stackoverflow, I logged in with my google account. Whenever I review this site, I logged in automatically or (if I logged out) I just need to log in again - I no longer need to check the general rights. However, the use of examples on my site forces the user to allow access whenever the site is visited again.
Were there any errors when using the examples? What do I need to do to repeat the permission request again and again?
Thanks in advance for your help!
Elvis
source share