Best practices for secure login of website/app
Hello, all,
I am nearing the end of my side-project, and could use some advice on creating a secure login for it.
First off, I would really like to avoid using CFLOGIN/CFLOGINUSER, if at all possible. I know a lot of people use it, and all, but after some things that I've read online, I'm not comfortable using it. I would like to create one from scratch. I've Googled for it, but I'm not finding anything that DOESN'T use CFLOGIN.
That said, another thing that I'm concerned about is keeping an admin logged in beyond what any session scope can do. No matter how long I programmatically set the session for, I believe that it cannot surpass what is set in CFAdmin. So if I manually set the session to expire in an hour, but the CFAdmin says 20 minutes, the session won't last beyond 20 minutes. 😕😕
One more thing.
(I kind of feel like Columbo, now) Concurrent logins. I want to disallow them, and set it so that if an admin is logged in, already, that a second login without a logout, first, will deny the second attempt at logging on. Is this difficult to arrange?
I have included the class for BCrypt in my admin section and was planning on using that for encrypting the passwords before inserting them into the database. Yea, or nay?
V/r,
^_^
UPDATE: ALSO - how difficult is it to set it so that I can see who is logged on, and "boot" anyone (assuming I think their account has been compromised)?
