Redirect after login

Hi, I can redirect a user to a specific page after login. However, this only happens after the default page has been displayed for a few moments. Is it possible to avoid this and just show the last page? Thank you very much!