Without going into the design problem, actually tracking people, you can do it, I did it using the inventory system.
Set up your users with their unique identifiers in the database and print the barcode accordingly (many free applications are available for this). Now set the barcode to the tab after each scan and use the event listener to wait for the tab to invoke.
Once you understand that everything else is easy, check the database and save the information based on the barcode number after it does everything that waits for the tab again. With a cheap scanner, you can show a screen that says "Okay" or "Try Again"
(with the design problem, you can always make sure that the employee cannot leave, unless he has already signed up, and vice versa, and the screen displays "login, log out" if double scanning) / p>
source share