I can display a login form (with user name, password, submit button, cancel button). However, I want to do the same thing on a window.

What I mean is when visitor first visit the protected page, a modal window will appear and ask them the user name and password. Can someone help?

Thanks.