Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: blodder24 - helmikuu 23, 2009, 11:50:41 IP

Otsikko: Redirect After Login
Kirjoitti: blodder24 - helmikuu 23, 2009, 11:50:41 IP
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?
Otsikko: Re: Redirect After Login
Kirjoitti: Robbo_ - helmikuu 24, 2009, 07:51:17 AP
Did you try the absolute url?
Otsikko: Re: Redirect After Login
Kirjoitti: blodder24 - helmikuu 24, 2009, 02:34:04 IP
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.
Otsikko: Re: Redirect After Login
Kirjoitti: JimM - maaliskuu 14, 2009, 03:41:00 IP
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.