I have #include pages at the top of every page that verifies that the user has logged in by checking for a session variable before allowing access to the page. However, if the user is not logged in after clicking on a protected page, they are directed to the log in page. How do I direct users to the page that they originally requested after they successfully log in rather than just to some default page? I probably use HTTP_REFERER, but I'm not sure how to do this. Thanks.