Website Login With Google or Yahoo/WordPress/OAL Account

Website login is very important part of web development, now era is change,so no person wants to fill registration form to login in website,You can solve this problem using OpenID. OpenID provides a safe and simple way for people to login into your website/blog without fill a registration form.You can use this code for other account as well like wordpress, yahoo aol ext except Facebook and twitter.You just need an account of OpenID provider to access login without registration form.

I will show you how to connect with Google and yahoo using OpenID provides.

How to Connect Google with OpenId

Step 1:

Download auth file from below url.
Download OpenID

Step 2:

To create login page to get action index.php.

Final Result :

Website login with google account/yahoo account

Step 3: To create home page to redirect after successful login home.php.

Result

Website login with google account/yahoo account
Step 4: To create sign-out page to redirect after successful logout signout.php.

Other OpenId Options

There are other account providers also available,You just have to change the url $openid->identity() function by below url:

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