Protecting Pages Code? What am I doing wrong. Please help
I am having an issue protecting sub-folders within sub-folders with PHP.
I have been protecting pages with only short directories (doing fine), but now I am wanting to protect new directories with a number of sub-directories and that is where I am having troubles.
Example:
PHP Login Script Location: http://www.mydomain.com/login/free/main.php
Works Fine -
Pages Protected: http://www.mydomain.com/login/free/members/free.php
Does not work -
Wanting Pages Protected: http://www.mydomain.com/login/free/members/free/archive/directory/2008.php
(and branched out from there)
This is the code I use on tops of all my pages, but the long one's do not work...
<?php
include("..../include/session.php");
if(!$session->logged_in){ header("Location: ..../main.php"); } else {
?>
<!-- --> Can anyone tell me why this is the case and what I am doing wrong.
Thanks
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
---
Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu
Generate thousands of leads in any niche in under 60 seconds!
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
---
Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu