How do I create a login page with Dreamweaver CC 2017
Hi,
I have been doing some research on how I would create a login page with Dreamweaver 2017 as I wanted to create a practice page to make sure I understood the principles and that I was securing my pages and databases correctly before moving to a production environment. I have found many tutorial online (including some wrote officially by adobe) but they all seem to be out of date as they are all talking about "server behaviours" which was depreciated when Dreamweaver CC was released and is no longer included with Dreamweaver.
I really want to create a proper login page that uses a web-form connected to a MySQL database. I know how to create the database and I know how to layout the form. What I don't know how to do is make the form work with the database and as previously mentioned all tutorials that I have found (including official adobe ones) are talking about server behaviours which is not helpful to me at all since I am using the CC 2017 version of dreamweaver.
I want to have this setup:
1: A login page with a web-form where users enter their user name and password
2: A login button that will submit the information in the form
I do not need a registration page as I do not want users to be able to self register. I will be using a web-form that submits a registration request to an administrator via email, who will manually validate the users identity and then create an entry for them in the user database.
I want this to happen when i user enters the correct details into the login form:
1: Username and password is entered into the login form
2: User submits the form by clicking login
3: Username and password is validated against credentials held in a MySQL database
4: User is authenticated
5: User is directed to the protected "members" page
I want to have this happen when the user enters the incorrect details into the login form
1: Steps one to 3 above are the same
2: User is not authenticated
3: User is directed to a page that says "you have entered an incorrect username or password please try again."
I want this to happen if a user enters the website address for the protected page directly into the address bar of their browser
1: Session ID is checked
2: No session ID or invalid session ID is detected or session ID can not be determined
3: User is redirected to the login page
or
1: Session ID is checked
2: Valid session ID is detected
3: User is allowed to continue to the protected page without being redirected to the login page.
How can I do this in my version of Dreamweaver CC 2017?
Cheers
Jay
