Tuesday, 23 November 2010 22:09
Redirect to last current admin page after session timeoutWritten by chris
If, like me, you work on many different sites at once, then you will probably have noticed a strange feature of the Joomla administrator login. If your administrator session has timed out and you click on a link to a component or something else then you will be redirected to the login page. The annoying thing is that after you have logged in you are returned to the main index page. I know this is a small issue but it's one that annoys me! It just means clicking on the link again or hitting back in the browser but neither of these should be necessary.
In order to fix this I decided to write a small plugin that stores the page that the user was attempting to reach in a cookie. It then takes over from Joomla at the onLoginUser event in order to redirect to the correct page. The download is here for registered users. You can register here.