Login Register


When logged in it redirects, how to? filter_list
Author
Message
RE: When logged in it redirects, how to? #22
It's an extremely bad thought to think that using:
Code:
header("Location: http://www.example.eg");
will be enough.
It's not like when the interpreter stumbles upon the header location that it will redirect you right away, it will simply set the header and will proceed executing the rest of the script. Therefore you should always call the exit function to terminate the script, unless of course you want the rest of the script to be executed as well.

Reply





Messages In This Thread
When logged in it redirects, how to? - by BlueCat - 06-15-2014, 04:03 PM
When logged in it redirects, how to? - by BlueCat - 06-15-2014, 04:03 PM



Users browsing this thread: 1 Guest(s)