Login Using Google, Yahoo, WordPress and AOL Account into Your Website

As of these days social networking sites are opened use in public users for SEO, Boast organic traffic or even connect in other various site to avoid hassle inputting list of your information. In this tutorial I’ll explain on how to add login using google, yahoo, wordpress and aol account in one same codes, that’s sound simple and easy right?

Okay let’s start.

Download Library

The first thing you need to do is download OpenID library at LightOpenID, just put this file in your project directory.


This contains the login button in this example I’ve use Google, this will call the Google window and the site to redirect after login.

You need to change domain.com to your domain name and returnUrl to where you want to redirect your site after login.


This contains the data after login, email and name, also you need to add identity field in your login table to store the $openid->identity. It is the unique ID that Google provides you to identify the user. The other fields automatically change when the user change his Google profile info or any other OpenID provider.


To logout the user , we only need to destroy all session.

Other OpenID Provider

To login using other OpenID provider you only change the $openid->identity to:

  • Google : https://www.google.com/accounts/o8/id
  • Google profile : http://www.google.com/profiles/~YOURUSERNAME
  • Yahoo : https://me.yahoo.com
  • AOL : https://www.aol.com
  • WordPress : http://YOURBLOG.wordpress.com
  • LiveJournal : http://www.livejournal.com/openid/server.bml

by Ryan Sutana

  • I thought this was pretty enlightening. Keep up with excellent blog posts.It’s look for my thoughts. kudos.

  • This is a very newsworthy writing! I am so glad I stumbled your page. Keep up the great work. Have a excellent day!usaforwarding.com

  • Nice post at Login Using Google, Yahoo, WordPress and AOL Account into Your Website | SutanaRyan.com. I was checking continuously this blog and I’m impressed! Very useful information particularly the last part 🙂 I care for such info much. I was looking for this certain info for a very long time. Thank you and good luck.

  • I do consider all of the concepts you’ve introduced in your post. They are really convincing and will definitely work. Still, the posts are very short for novices. May just you please extend them a bit from next time? Thanks for the post.

  • This is such a deep blog! What can I say, youve hit the nail correct on the head! You even added some videos to make it seem so much more actual. Youve got an excellent way of communicating with the reader, an excellent way of generating me feel like what you might have to say is just as critical to me as it really is to you. Keep it up!

  • I would like to to thank you for this terrific study!