Hello, Thank you for posting the code. However, I note that you use the header to force the browser to pop up the username and password dialog. However, what I am trying to do is a little different -- I want an unauthorized user to always go to a web page with the login form. That is what I am having trouble doing. Do you know how to do that? Thanks, VanL