note 64189 deleted from function.header by tularis

From: Date: Fri, 20 Apr 2007 14:32:17 +0000
Subject: note 64189 deleted from function.header by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125679@lists.php.net to get a copy of this message
Note Submitter: bkatz at usefulengineering dot com ---- When doing a simple redirect using header, i.e.: header("Location: login.php"); you may want to place a command to terminate your script following this, like exit: header("Location: login.php"); exit(); Otherwise, you may find, unexpectedly, that your script following the redirect continues execution. Not sure if this is expected behavior, but regardless, in the case of, for instance, a redirect to a login page when a user is not logged in, that's definitely something you'll want to add to prevent "secured" code from running.

« previous php.notes (#125679) next »