+ 1

How to implement login??

hello, guys!! I'm trying to build a system for a drugstore (for fun), but the login method I'm using is pretty simple (already defined user and password) and the login is an if (if (user == user) && (pass == pass) then proceed else backToLogin), so I'm to implement something to create new users, store/delete them. what do you suggest??

20th Oct 2017, 12:48 PM
Roberto Herrera
Roberto Herrera - avatar
3 ответов
+ 4
You have to learn PHP, SQL in order to do that
20th Oct 2017, 12:54 PM
Cool Codin
Cool Codin - avatar
+ 2
You should also consider implementing sessions, tokens, cookies to track and control the users. Also use some encryption for the password like MD5 and also think about a way for the user to rest their password. Also use a timeout for the session to log them out after 30 minutes of inactivity.
20th Oct 2017, 1:47 PM
ihateonions
+ 1
thanks!!
20th Oct 2017, 12:55 PM
Roberto Herrera
Roberto Herrera - avatar