News:

Wondering if this will always be free?  See why free is better.

Main Menu

Redirect After Login

Started by blodder24, February 23, 2009, 11:50:41 PM

Previous topic - Next topic

blodder24

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?

Robbo_

Did you try the absolute url?
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

blodder24

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.

JimM

#3
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.
Jim "JimM" Moore
Former Support Specialist

Advertisement: