Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues storing access token in session #149

Open
gonsalvg opened this issue Sep 28, 2021 · 1 comment
Open

issues storing access token in session #149

gonsalvg opened this issue Sep 28, 2021 · 1 comment

Comments

@gonsalvg
Copy link

Heyo, stuck again with another question. Once again, not a PHP expert, but I think this should be working as I have it set up.

$_SESSION['graph_token']= $token;

fetching token from session gives an error for incomplete class - issue restoring the class from session

trying to instance accesstoken from the library using the token string (from token->gettoken)and now I get
"expires" is not set on the token when trying to use it.

@Acsiod
Copy link

Acsiod commented Apr 5, 2024

$_SESSION['graph_token']= serialize($token);

Then

if(isset($_SESSION['graph_token']))
{$token = unserialize($_SESSION['graph_token']);}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants