|
|
@ -233,6 +233,7 @@ class EBSCOAPI { |
|
|
|
* @access public |
|
|
|
* @access public |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function getSessionToken($authenToken, $invalid = 'n') { |
|
|
|
public function getSessionToken($authenToken, $invalid = 'n') { |
|
|
|
|
|
|
|
$guest = variable_get('roblib_search_eds_guest','n'); |
|
|
|
$token = ''; |
|
|
|
$token = ''; |
|
|
|
|
|
|
|
|
|
|
|
// Check user's login status |
|
|
|
// Check user's login status |
|
|
@ -251,7 +252,7 @@ class EBSCOAPI { |
|
|
|
if (empty($profile)) { |
|
|
|
if (empty($profile)) { |
|
|
|
$profile = $_COOKIE['Guest']; |
|
|
|
$profile = $_COOKIE['Guest']; |
|
|
|
} |
|
|
|
} |
|
|
|
$sessionToken = $this->apiSessionToken($authenToken, $profile, 'y'); |
|
|
|
$sessionToken = $this->apiSessionToken($authenToken, $profile, $guest); |
|
|
|
$_SESSION['sessionToken'] = $sessionToken; |
|
|
|
$_SESSION['sessionToken'] = $sessionToken; |
|
|
|
} |
|
|
|
} |
|
|
|
$token = $_SESSION['sessionToken']['sessionToken']; |
|
|
|
$token = $_SESSION['sessionToken']['sessionToken']; |
|
|
@ -260,7 +261,7 @@ class EBSCOAPI { |
|
|
|
|
|
|
|
|
|
|
|
$profileId = $this->config['profile']; |
|
|
|
$profileId = $this->config['profile']; |
|
|
|
|
|
|
|
|
|
|
|
$sessionToken = $this->apiSessionToken($authenToken, $profileId, 'y'); |
|
|
|
$sessionToken = $this->apiSessionToken($authenToken, $profileId, $guest); |
|
|
|
$_SESSION['profile'] = $profileId; |
|
|
|
$_SESSION['profile'] = $profileId; |
|
|
|
$_SESSION['sessionToken'] = $sessionToken; |
|
|
|
$_SESSION['sessionToken'] = $sessionToken; |
|
|
|
setcookie("Guest", $profileId, 0); |
|
|
|
setcookie("Guest", $profileId, 0); |
|
|
|