Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: aldo on December 30, 2008, 11:23:59 PM

Title: Getting $_SESSION['login_url'] to work?
Post by: aldo on December 30, 2008, 11:23:59 PM
In SMF you are supposed to be able to set $_SESSION['login_url'] and then once you login you will be redirected back to the place in $_SESSION['login_url']
 
However the thing is, on my main site I have it set $_SESSION['login_url'] but when I login it doesn't redirect me back to the place that is in $_SESSION['login_url']
 
Anyone know why this might be happening?
Title: Re: Getting $_SESSION['login_url'] to work?
Post by: greyknight17 on January 16, 2009, 08:54:04 PM
Is this issue resolved?

If not, is using SSI an option? If so, how about something like the following:

Code: [Select]
<?php
include('SSI.php');

ssi_login('http://www.yoursite.com');

?>