Thanks for the reply. I do understand that I need a redirect, but what I don't understand is the code for It to automatically go back to previous URL. In this case, again, I have two different secure pages - director.php and other.php. I do not have a separate area for login, so when a user goes to either of those pages they are redirected to the login page. If I just put director.php as the redirect, then those who login via the other.php will be redirected to the wrong page. That is why I need them to be redirected to the previous URL (whichever one they came from: either director.php or other.php. Is there a code I should put in the redirect to accomplish this? Thanks so much!