Hello,
A visitor logs into my site on from an external page, and their username and password is passed to: index.php?action=login2. The login goes through, but they are redirected to the forum although I set $_SESSION['login_url'] = "cart.php". Why is the forum loading instead of cart.php?
Any ideas?
Did you try the absolute url?
Yes I did. Where in the code does it redirect to the forum after a successful login?
I am going to copy the login code and hardcode my redirection.
Did you resolve this issue? Are you setting this in /Sources/LogInOut.php? There are several mods on the Mod site that will help with this.
http://custom.simplemachines.org/mods/index.php?mod=1443
If this is solved, feel free to mark it as solved by clicking the Mark Topic Solved link at the bottom of the page under the linktree.