I wonder if someone can help me?
I've got a basic login system running using sessions -- the user enters their username and password and is directed to a "Sucessful Login" page but after this they have to navigate themselves.
I want to pass the URL of the page that they were directed to the login.php page from through to the login.php page and then redirect them "back" to the page they came from.
I have tried this using sessions:
e.g.
header('location:$_SESSION["current_url"]');
but the $_SESSION["current_url"] doesn't seem to pass from one page to the other; I assume because the session is only started once the user logs in.
Can anyone help me out with this?
Thanks in advance for any help!