I want a very simple script writing to password protect web pages so that they will only be visible to authorised users who have entered a correct password after they have made a purchase.
After a customer has made a purchase it will automatically generate a random password to allow them access to the protected web page(s). (See later for more details on 2 supported payment processors)
For any protected page, before the main content is displayed they will be presented with a simple login form requesting them to enter their email address & password before they are allowed access.
If valid password details are entered only then will the page be displayed, plus if they navigate to another page that is password protect on the same domain, they will not be forced to re-enter the password again as it will be stored for the duration of the browser session.
For any page that needs to be protected (eg. HTML, PHP), I want it to be very simple to do, by just placing a single line of code on the page (probably php code although open to suggestions if there is an alternative)
Here are the main features I want to the script to have/be able to do:
? A random 8 character password will automatically be created for customers immediately after purchase
? Immediately after purchase customers will be redirected to a "one time screen" that displays the password and after xx seconds redirects them to the appropriate first password protected page
? After this initial redirection to the correct page following purchase it may auto-sign them in first time otherwise a login page will be shown.
? Optionally send the person an email with the password details in.
? For any page requiring protection is will be done by simply inserting just a line of php code at the top of the page
? Once password entered no need to re-enter on other pages during same browser session as it will be stored
? Use cookie to store password for x days dependant of admin setting in [login to view URL] file and therefore when they return to page in an new browser session the email/password will be pre-filled
? Password recovery option from login page
See detailed summary for more details.
## Deliverables
See attached document with some additional details in of what script should do and some example screen layouts.