OpenID - How do I check if an OpenID user is logged in?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
LonelyProgrammer
Forum Contributor
Posts: 108
Joined: Sun Oct 12, 2003 7:10 am

OpenID - How do I check if an OpenID user is logged in?

Post by LonelyProgrammer »

Slightly off-topic, I guess, but I am using PHP to implement it...

Right now I have figured out how to direct a user to an OpenID provider and log him in. The thing which I do not know is how do I know beforehand if he has already logged in before he visits my site? Or that is not the intention of the OpenID at all and the user should log-in again, with his OpenID, at my site and choose whether to associate my site with his OpenID?
Post Reply