Protecting page access with PHP server behaviors Dreamweaver and PHP


show more Protecting page access with PHP server behaviors provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL show less
please wait ...

Protecting page access with PHP server behaviors

Once you've created a login form for your web site, you can then protect individual pages so that only users who have logged in can view them. For this demonstration, I'll use the file explorerlist.php in the explorers folder, under the chapter 8 site root. With the file open on the screen, I'll go to the menu and choose Insert > Data Objects > User Authentication. From there, I'll choose Restrict Access To Page. On this screen, I am asked to check whether a user has already logged in.

You can either choose to protect based on a username and password or a username, password, and access level. I'll use the default setting, and that means that anybody who is logged in will be able to view the page. Then for users who haven't logged in, I'll indicate which page I want them to see. I'll browse, make sure I'm at the site root, go to the login folder, and choose my login form, login.php, and then I'll click OK. I'll save my changes, and I'll r...

Protecting page access with PHP server behaviors
Video duration: 4m 17s 4h 55m Intermediate Updated Jun 12, 2012

Viewers:

Protecting page access with PHP server behaviors provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL

Subjects:
Business Developer Web
Software:
Dreamweaver
Author:
please wait ...