Netobjects fusion updating online view
Do I put this: die('Include following code into you pages: include("("/home3/marilou/cc-ob-www/elder-connect/password_protect.php");'); like that?zubrag: in order to see protection code you should open script in browser.
Copy password_to protect A.php, and include protect in webpage A. help but when stripped into my php page I get a login screen and once login is entered it re-directs to the appropriate page but its just blank.zubrag: this means something goes to output before password_is run. Warning: Cannot modify header information - headers already sent by (output started at /......djsonnyb/jukebox/index.php:1) in www/djsonnyb/jukebox/password_on line 139 im a noob any help? I erased some of the path because of security Hi, first of all great script !!!!! Unfortunately the password-protect php seems to mess with may layout.To avoid setting cookie add // before setcookie so resulting line will be // setcookie("verify", md5($pass)); I don't have a problem with the protection string. My problem is in the password_file that I have named I _guess_ it might be because of the die(); value which prematurely kills the rest of my php and so messes up the layout but I am not sure how to fix that.zubrag: Changed script according to Mark's suggestion.
Now it supports cookies and requires password only once. Does it need to be put in a secure catalog, maybe outside the webroot? Outside the webroot or in a secure catalog would be good.The PHP header command won't do that because it cannot have anything else written to the screen first. zubrag: Script was not designed to redirect, but it may redirect after login if you add the PHP "header" command like mentioned in comments above. let us suppose if i want to give login name as abcdef and password as xyzabcdef then what should i write in the code....