I've implemented a login include at the top of each of my pages.
When a user tries to open this pages it will first check whether he has been logged in, using $_SESSION's,
and if not, the user is directed to the login page.
This is working as expected up till here. But what I would like to have is when the user tries to open a page the login include must direct the user to the page he was initially trying to open after the login was successful.
Hope this makes sense..