Page 1 of 1

PHP_AUTH_USER when does the server gives up?

Posted: Sun Jul 18, 2004 7:02 am
by pelegk2
when use PHP_AUTH_USER to ask the user for his user name and password
and the user makes a mistake for few times
,the loign box prompts for few times- how does te number of times being controled?can i control the number of time that it will pop up?
thnaks in advvance
peleg

Posted: Sun Jul 18, 2004 12:22 pm
by JAM
Unlimited I think, but someone with more experience should answer.

In the meantime, you could add your own database driven check with it...
Each time a user logs in with faulty information, you could add his/her IP (or similiar) to a table in the database. If the user is added more than 5 times during a certain period of time, you header() him/her too google.com instead of displaying the login-box for the 6th time.

I hope I made sence.

Posted: Sun Jul 18, 2004 12:35 pm
by d3ad1ysp0rk
I believe it's 3, or 2. But I'm not sure how to change the setting.