I've been going around in circles for days on this. I developed over 200 pages of code in a software package and have written the Login scripts in PHP. On about 100 pages are 3 hotlinks in iframe - some which may only be accessed if logged in. If I add php code to the top of the pages to be protected to redirect if not logged in, I get the famous headers already sent error. If I put the same code on a separate page (page1), all is well. There is something in the generated code that is sending headers I think
The only thing I can think to do is to have a conditional redirect on the calling page to page1 and if logged in return or else then redirect to login page, but obviously need to ensure I do not go into a loop. Any help would be greatly appreciated. I need to go live with this site today.....PLEAS E help
The only thing I can think to do is to have a conditional redirect on the calling page to page1 and if logged in return or else then redirect to login page, but obviously need to ensure I do not go into a loop. Any help would be greatly appreciated. I need to go live with this site today.....PLEAS E help
Comment