Using the HTTPS (SSL / TSL) protocol in a login with 2 (two) levels of authentication in PHP? [closed]

2

I'm starting a project that will work with inventory information and other more sensitive business data so I decided to do 2 (two) login levels as in banking systems.

1st authentication

  • Consists of providing email and password chosen by the user.

2nd authentication

  • Consists of providing username and password given by the system itself.

How to make login pages use only HTTPS as communication protocol and data transfer?

    
asked by anonymous 06.12.2015 / 01:27

1 answer

0

1. What is HTTPS?

[ref.]

HTTPS is nothing more than communication using the HTTP protocol with an encrypted secure connection on the layer transport with SSL.

2. How to use with PHP?

[ref.]

You will need to enable SSL on the server and also run the SSL certificate you purchased (you can take a look at the OpenSSL that is better ).

You can then force the user to use HTTPS login through configuration of .htaccess and protocol checking on page .

3. Useful Links

06.12.2015 / 02:38