https://www.icyphoenix.com/viewtopic.php?f=35&t=5299&p=46554#p46554
-----------------------------------
KugeLSichA
Sun 13 Dec, 2009 21:36

Re: Login And Redirect To Current Page
-----------------------------------
Hey Gianni

take a look at this codelines:

[code linenumbers=false]
if ( !$userdata['session_logged_in'] )
{
	redirect(append_sid(LOGIN_MG . '?redirect=YOUR_SITE.' . PHP_EXT, true));
}
[/code]

with this code you can set the page after login


