Keep SESSION variable when authenticating Rdio API

9 views
Skip to first unread message

Damon Wilson

unread,
Mar 22, 2015, 10:04:04 PM3/22/15
to rdio...@googlegroups.com
Is it possible to keep session variables alive after authenicating with Rdio API. 

I'm specifically referring to.. 

} else {
  # we have no authentication tokens.
  # ask the user to approve this app  
  $authorize_url = $rdio->begin_authentication($current_url);
  # save the new token in our session
  $_SESSION['oauth_token'] = $rdio->token[0];
  $_SESSION['oauth_token_secret'] = $rdio->token[1];

  header('Location: '.$authorize_url);
}

After coming back to the $current_url my session variables are no longer available. Was wondering if there was something I could do to change that.
Reply all
Reply to author
Forward
0 new messages