Hi,
I am using PHP and MySQL in my application. I have created a Login
System for using "Sessions". The problem that I am facing is that I
need to protect a large number of pages in my website. So I have tried
to use this method and it works fine for me :
<? session_start();
if (session_is_registered("valid_user"))
include ('guest.html');
else include 'not_logged_in.php';
?>
I get stumped here .... in order to be able to insert this code I have
to write for each of the 400 html files, 400 php files with the same
name. Most of the files are arranged in the form of directories. Is
there a better way to be able to do this (Using PHP and MySQL). Thanks
in advance !
Best Wishes
Pushpinder Singh Garcha
_________________________________
Web Architect
- Re: [PHP] Protect Access to a Directory Pushpinder Singh Garcha
- Re: [PHP] Protect Access to a Directory Jason Wong
- RE: [PHP] Protect Access to a Directory Adrian Portsmouth