How to create a secure multi user login system with php and mysql with session

[Q]

New member
and cookies? I have this log in form but I don't know how to make a multi user login in php
how can I do this?

My form is this
1 input for username,1 input for password, and 2 radio button for branch id and 2 radio button again for user type (admin,regular).
also i want to make it secure using using sessions and cookies to expire it in 30mins

In mySQL
i have set the branch id and user type with enum s.
 
Back
Top