Re: [PHP] All Code Executing Even After header() Redirect

2003-03-03 Thread David Otton
On Mon, 03 Mar 2003 14:50:00 -0500, you wrote: >I thought the code below the header() redirect would not actually be >executed unless the user was logged in and allowed to proceed. Is this how >PHP is supposed to work? Is there any way to prevent the script from header() isn't a goto - it just ou

[PHP] All Code Executing Even After header() Redirect

2003-03-03 Thread Monty
At the top of every page in my site I have a snippet of code that authenticates the user by checking for valid SESSION vars and their contents. If they don't, they are redirected with a header() statement to a log-in page like this: include_once("function_library.php"); session_start();