所以这让我发疯,我可以认证很好,并获得所需的身份验证变量存储在会话中,但它没有被存储,我已经检查了PHPInfo并且Godaddy服务器确实启用了会话...我到底做错了什么?
<?php
session_start();
require 'Soundcloud.php';
$soundcloud = new Services_Soundcloud('XXX','XXX','XXX');
$authURL = $soundcloud->getAuthorizeUrl();
echo "<pre>";
echo "<a href='$authURL'>Connect To Soundcloud</a>";
try {
if (!isset($_SESSION['token'])) {
$accessToken = $soundcloud->accessToken($_GET['code']);
$_SESSION['token'] = $access_Token['access_token'];
}
else {
$soundcloud->setAcessToken($_SESSION['token']);
}
} catch (Services_Soundcloud_Invalid_Http_Response_Code_Exception $e) {
exit($e->getMessage());