openid - Check in custom php application if a user has already logged in google apps account -


i creating php application in want implement openid login. want implement following functionality:

if user has logged in google apps account, php application should not ask him login info again.

how can check in custom php application login, user has logged in google apps account?

i using php lightopenid.

please help.

you can not. cannot check if random visitor authenticated on other random 3rd party site. because it's none of business , quite privacy problem.

you can go through normal openid login process, redirecting user google , see back.

maybe mean implement your login system? openid login tells who user is. not remember user or implement kind of session or permission system you. if user has used openid authenticate site once, keep track of him using sessions, cookies, database entries or whatever else need on your site.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -