tags:

views:

259

answers:

3

I absolutely love StackOverflow's usage of OpenID for registration. How would I go about adding this to my site? It is PHP based. I went to openid.net and looked at the libraries there, but could find little in the way of documentation or examples.

+4  A: 

This tutorial was helpful for a previous project I worked on using PHP and OpenID. It has an example app.

http://devzone.zend.com/article/3581

alt text

Yada
Just what I needed!
George Edison
That link you provided is great, thanks
jasondavis
A: 

OpenID is great, but have one big disadvantage. Let's imagine that I'm having Google account and Yahoo account. I will login using Google and then I will try to login using Yahoo. And it will be different accounts; it's really difficult to remember what openID provider I was using for registration... So, be careful with OpenID on entertainment websites, but it is still ok for developers websites.

Check OpenId class from Zend Framework.

Kirzilla
Ya, but you could associate both accounts to prevent this.
George Edison
Yeah you can, but how could you know that user associated to these account is the same people? If user has deleted all cookies - it is impossible. :(
Kirzilla
The only way is to do like stackoverflow do. Put "Add OpenID" button into user profile.
Kirzilla
For sites that use email addresses as usernames, do you forget if you logged in with your gmail account or your yahoo mail?
keturn
+1  A: 

Documentation and examples.

keturn
Thanks for the examples!
George Edison