Is there a way to redirect to the original link after login instead of the default page?
right now if the user is not logged in and try to open a specific link after it asks for username and password it redirects to home page but i want to redirect to the requested page.
Thanks for your reply but i think i have a specific problem.
in the production machine:
if i am not logged in and i open this link: ht tp:// 192.30.2.1 6/feedbackadd.php?showdetail=
it will redirect me to htt p:// 192.30.2.1 6/login.php
when i login it redirects me to htt p:// 192.30.2.1 6/home.php
in my test environment it goes like this:
if i am not logged in and i open this link htt p:// localhost/fe edbackadd.php?showdetail=
it will redirect me to htt p:// localhost/lo gin.php
when i login it redirects me to htt p:// localhost/fe edbackadd.php?showdetail=
i want my production to work like the test not sure what is this related to.
It seems that the last URL cannot be saved in session variable. I’m not sure how this is related to SSL. Maybe it is related to samesite cookie. Did you set Tools → Advanced Settings → “Cookie samesite” to “None” or set session.cookie_samesite=None in php.ini? If so, you do need SSL, see: https://blog.chromium.org/2019/10/developers-get-ready-for-new.html.
I think you are right it is related to last URL cannot be saved, but my settings are normal
php.ini session.cookie_samesite = “Lax”
and in phpmaker Lax as well.
i also tried many different combinations among those and different php versions + wamp and xamp all the same.