Not entirely sure what exactly I'm asking for here, but basically I need to create a page for a client that allows a secure login to access another page. It just needs one username/password combination, and it has to be configureable to automatically log out a user when they close their browser window.

Any suggestions?