Re: PHP-using HTTP Guru ?

From: Date: Mon, 11 Feb 2002 18:53:18 +0000
Subject: Re: PHP-using HTTP Guru ?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-79949@lists.php.net to get a copy of this message
On Monday, February 11, 2002, at 01:46 PM, brad lafountain wrote:
are you trying to do someting like? if(validuser) { print "hello valid user"; } else { header("Location: http://myhost.com/baduser.php"); }
Yes: if (!isset($_SESSION['authenticated'])) {
    header("Location: ./index.php");
} Which is included from every page on the site except index.php, before any page content is parsed/passed.
if thats what you want to do.. then it should work... but there are much better ways of handling this..
I'd be interested to hear about it. Thank you, Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.dev (#79949) next »