From the moment you store valuable information like Personal Identifiable Information, sensitive or medical data, you must protect that data.

Authentication will identify the user and protect the access to data. It functions as a gatekeeper to access the user’s data.

 A secure authentication mechanism must implement: 

In the OWASP Authentication Cheat sheet, you can find several recommendations about these topics.

 When a user accesses authenticated pages, you need to keep track of his authentication. This is mostly done by a session.

 To ensure a secure session, you must implement: