Set a Session variable at the top before you redirect to the login page, then use that variable to redirect back to the page they were trying to get to. Ron