Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37670

Tracking systemic login failures

$
0
0
by Robert Brenstein.  

We are using a mail server for authentication, which is not under our control. Once a while, it has a technical issue and users can't log in. The outages do not usually last long but are confusing to users. I thought to display an additional msg when this happens. I mean something like this: when let's say 10 subsequent users fail to log in, an error message states that there seems to be a problem with authentication server which prevents logins.

A simple scheme would be to track the number of failed logins. I mean having a persistent variable which is reset by each successful login and contains count or list of sequential failed logins. The trick is to count only unique users not login failures in general. Anyone has done that or has an idea how to program the latter easily and effectively in PHP? What I am stuck with is keeping a list of user ids, ensuring that they are unique.

Viewing all articles
Browse latest Browse all 37670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>