I am working on an authentication system for an online game programmed using PHP and I would like to make sure it is secure. To help with this, I think logging would be useful (and good practice for me as well as a good test for a system logging class). I dont want to use the web server's logs, but I would like to know what would be important to log for failed authentication attempts.
I've pondered some options but I don't want to miss anything important. Below is a list of what I've considered so far.
- Nothing (maybe it's pointless?)
- full page URL
- username attempted
- ip address
time/date
What other things do you suggest to make sure to log?