Hello, I want to write some PHP scripts for my page, where I want to have some areas only for registered members, but I have some problems. I have configured my .htaccess file like this: AuthName "MySQL Testing" AuthType Basic AuthMySQLHost localhost AuthMySQLUser “root” AuthMySQLPassword “” AuthMySQLDB testDB AuthMySQLUserTable user_info AuthMySQLNameField user_name AuthMySQLPasswordField user_passwd AuthMySQLPwEncryption none AuthMySQLEnable On require valid-user This file is in my protected folder. If I try to read HTML file stored there, I see logon window named "MySQL Testing". Everything seems to be ok, but it isn’t. I have put correct user name and password and system does not allow me to read the file. I see following message: Authorization Required This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required. Why is that? What could be wrong here? For sure not .htaccess. Why browser could not recognize information I have entered? Next question: Could somebody send me mall example, how to have another Login Box using PHP script? I want to have something like login.php . if user tries to read a document from protected directory, he should see login page written in php. regards Rafal