I'm looking at security at this point.
1. On every page is checks for a $_SESSION. If one doesn't exist, it send you back to the login page.
2. headers preventing caching-
header("Expires: Fri, 01 Jan 1988 00:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: post-check=0, pre-check=0",false);
session_cache_limiter();
3. making sure the input and output is sanitized on the forms.
What I'd like to do is to track login attempts and after so many it will ban your ip address. When you get to the login page, it ends any previous sessions, so I guess I can't use a session variable to track login attempts. Any thoughts on how to do this?
Unlike other issues I've had, I cannot find any examples to use as a base. Any assistance would be appreciated.
Thanks!
Also if there are other things I should look for or any other suggestions; a checklist perhaps?
Thanks again!