First:
Add a "return" $_GET parameter to login URL and session.php post URL. Use this in the header() function in session.php.
Second:
Log the return URL via $_GET parameter or otherwise and then post it via hidden to session.php. Use this in the header() function in session.php.
There's two options I'm considering right now:
First: Add a "return" $_GET parameter to login URL and session.php post URL. Use this in the header() function in session.php.
Second: Log the return URL via $_GET parameter or otherwise and then post it via hidden to session.php. Use this in the header() function in session.php.