Showing posts with label OpenID. Show all posts
Showing posts with label OpenID. Show all posts

Tuesday, September 25, 2012

Login with Yahoo Account

Website login with Yahoo account been posted at :
Website Login with Yahoo Account in my previous post, yahoo openid identify url been changed.

please use the following new OpenID URL for yahoo in order to work.

NEW Yahoo OpenID URL:
<?php session_start();
# Logging in with Google accounts requires setting special identity, so this example shows how to do it.
require 'require/openid.php';

try {
    # Change 'localhost' to your domain name.
    $openid = new LightOpenID('');
  $openid->required = array(

    if(!$openid->mode) {
        $openid->identity = '';
        header('Location: ' . $openid->authUrl());
$openid->identity ='';

    } elseif($openid->mode == 'cancel') {
        echo 'User has canceled authentication!';
    } else {
   $_SESSION['name']=$external_login['namePerson/first']." ".$external_login['namePerson/last'];
} catch(ErrorException $e) {
    echo $e->getMessage();

View the Updated New Demo & Download

Download This Script     Live Demo     Download Script