I am using google login form to login to my website, I am passing some values by $_SESSOIN. I am getting that values till login of my website, but when it comes to Google Sign in form, after that it clears $_SESSION values. What can be the reason? Is there any other way I can get the value after login?
- What do I want to achieve?
I want to redirect to user to the previous page after login with google. So I was storing page URL in session variable like $_SESSION["pageUrl"].
Is there any other way to handle this case if I am doing this wrong?