admin管理员组文章数量:1134247
When I attempt an OAuth handshake, the first step is a GET call to obtain an access code like so.
# Redirect to request authorization code
$url = $this->get_authorization_url();
header("Location: $url");
exit;
Just before I send this I store the current URL in a $_SESSION['last_url'] variable so that after authentication is complete I can redirect it back to the page the user originally attempted.
This authorization url uses the client id and secret to obtain an access code which is then returned to my callback script. The problem is the moment I land on my callback page the $_SESSION is completely blank. I need to ensure I can get this original URL to the end of the handshake and after an entire day devoted to this I'm desperate for some answers.
NOTE: Also should be noted that this site is hosted on WordPress Engine which has a strong caching mechanism which could be a cause of this problem, but even if it is I need a solution around it.
本文标签: redirectSESSION variables lost during OAuth callback
版权声明:本文标题:redirect - $_SESSION variables lost during OAuth callback 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736828575a1954601.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论