Question: In PHP write: They are authenticated and untrusted. An authenticated user is someone that has logged in. A visitor that is not logged in is

In PHP write:

They are authenticated and untrusted. An authenticated user is someone that has logged in. A visitor that is not logged in is untrusted. The SQL table, Customers, in your DB contains two entries. They are for anonymous and admin. Both have the same password, and it is password. The password is stored encrypted with SHA1 in the Customer table. An untrusted visitor can only access one webpage, the login page. The login page will prompt for username and password. Your website will check the credentials with the Customer DB. If the username and password are correct then the user is logged in (authenticated) and can access the rest of the website. Authenticated users are sent to the search page (explained below), login failures are returned to the login page. The login page should have a heading, Welcome to Shoppingmart by your-login and prompt for a username and a password. Visiting Shoppingmart should redirect to the login page if unauthenticated and the search page if authenticated.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!