[PHP] Headers already sent (Sometimes)
Im getting Warnings about headers being already sent. But not on my local web server Im sending the headers (to try and make the page not cache) before anything is echoed to the browser. I set the error reporting to E_ALL at the top of the script, turning error reporting off suppresses the warnings. local server Win XP(Windows NT 5.1 build 2600), Apache/2.0.39, PHP 4.2.1 running as a module using a patched Apache 2.0 Filter other server: Linux, Apache/1.3.24, PHP 4.1.2 with my local server there are no errors (even on E_ALL). I can also send a refresh header after html output. thanks in advance, Jake -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Authentication session problem (php/server implementation?)
I have a user authentication system using sessions it checks username and password against a database. if correct it sets a variable in the session cookie (via $_SESSION) and redirects to the protected page which checks for that variable. if the user/pass is wrong it redirects to an error page. if it gets to the protected page and the variable isnt set it redirects back to the login page. it works when uploaded to a server Linux, Apache/1.3.24, PHP 4.1.2. register_globals=on but on my local server Windows NT, Apache/2.0.39, PHP 4.2.1 using a patched Apache 2.0 Filter, register_globals=on. It seems to redirect back to the login page. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php