[eluser]Dam1an[/eluser]
so when you check if the user needs to be logged in, before redirecting them, get the current URI, and save it in flashdata, show the login form, check its the correct username/password and then redirect them (you will need to extend the flashdata once on the login form page so its available when you process the login details)