jamesxg1 Posted January 20, 2009 Share Posted January 20, 2009 How Do I Log Any Failed Logins On My Site ?, I Need It In PHP, Thanks Peepz Many Thanks James. Link to comment https://forums.phpfreaks.com/topic/141647-how-to-log-any-failed-logins-on-my-site/ Share on other sites More sharing options...
trq Posted January 20, 2009 Share Posted January 20, 2009 fopen & fwrite. Link to comment https://forums.phpfreaks.com/topic/141647-how-to-log-any-failed-logins-on-my-site/#findComment-741494 Share on other sites More sharing options...
Maq Posted January 20, 2009 Share Posted January 20, 2009 fopen & fwrite. Where is your page for unsuccessful logins? Put the code there. You have all the information you need, you just have to write it to a log file. Could you attempt it and come back with some code for us to work with? Link to comment https://forums.phpfreaks.com/topic/141647-how-to-log-any-failed-logins-on-my-site/#findComment-741498 Share on other sites More sharing options...
PFMaBiSmAd Posted January 20, 2009 Share Posted January 20, 2009 Or error_log (use a 2nd parameter = 3 to append to your own named log file) I personally log everything available about each form submission - who (ip, browser info, user id(loggin), referrer, post/get/cookie values), what (form submission), when, where (file name and line number in the code), and result (success, errors...) Link to comment https://forums.phpfreaks.com/topic/141647-how-to-log-any-failed-logins-on-my-site/#findComment-741501 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.