Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: drool on October 31, 2008, 11:56:49 AM

Title: SESSION[\'login_url\'] not working, need help
Post by: drool on October 31, 2008, 11:56:49 AM
I might miss this looking through all of the search results.

here is the problem

When I click on the link from an email notification like this:

http://www.mysite.com/forum/index.php?topic=10.new;topicseen#new

It opens up the smf login page, but when I login it redirects me to the index page of the forum, supposedly I should be redirected to the topic link above.


am I missing something??

Thanks in advance!!!!

Title: Re: SESSION['login_url'] not working, need help
Post by: drool on October 31, 2008, 03:14:47 PM
I made this to work by:

In LogInOut.php--> function DoLogin()

Changing this:
redirectexit('action=login2;sa=check;member=' . $user_info['id'], $context['server']['needs_login_fix']);

to this:
redirectexit($_SESSION['login_url'], $context['server']['needs_login_fix']);