In apex if your session times-out and you go back to the login page (from the button in the popup)
Intermittently when logging back in you are redirected back to the page your session timed out from.
How can you prevent this from happening and ensure that the user is ALWAYS redirected to the homepage specified in the login logic/instance settings on login from the login page??
Would also like to understand why it is remembering the last page loaded and where this is being stored.