Forum Moderators: phranque
Now I want to have an access control feature implemented by which when a user first tries to access the files directly through url, they are redirected to the login.php page. and once the user is able to login successfully they are then redirected to the file requested previously and now he can access any of the application files by directly mentioning the url.
Now since I have about 1000 application specific file, please
let me know how i can implement this access control feature. As i dont want to including any session specific feature in all the 1000 files, it would be great if I have a centralized way of doing this.
Thanks in advance.
The easiest place to set and check cookies is in your script. If that's not feasible, then Apache 1.3x can check cookies in .htaccess and Apache 2.x can both set and check cookies in .htaccess (using mod_rewrite).
Jim