this PHP Code should works.
But it doesn't.
I also tried the samples examples with no success.
CODE
<?
session_start();
define('CONSUMER_KEY', "my consumer key");
define('CONSUMER_SECRET', "myconsumer secret");
define('APPID', "my appid");
require("Yahoo.inc");
ini_set('display_errors', true);
$hasSession = YahooSession::hasSession(CONSUMER_KEY, CONSUMER_SECRET, APPID);
echo 'step1<br>hassession='.$hasSession.'<br>';
$callback = YahooUtil::current_url();
$auth_url = YahooSession::createAuthorizationUrl(CONSUMER_KEY, CONSUMER_SECRET, $callback);
echo 'step2<br>'auth_url='.$auth_url.'<br>';
$session = YahooSession::requireSession(CONSUMER_KEY, CONSUMER_SECRET, APPID);
echo 'step3<br>'session='.$session;
return me :
CODE
step1
hassession=
step2
auth_url=
step3
session=