ASP-like Response.End

From: Date: Thu, 24 Feb 2000 03:10:57 +0000
Subject: ASP-like Response.End
Groups: php.dev 
Request: Send a blank email to php-dev+get-15921@lists.php.net to get a copy of this message
This message was sent from Geocrawler.com by "Steve Cleveland" <clevelas@engr.orst.edu> Be sure to reply to that address. Maybe there is an easier way to do this, but here is what I'm trying to do: I'm trying to create a website in PHP4 using sessions to manage authorization. What I would like is to merely include a login.php file at the the top of each page. In that login.php file, it would check to see if I've logged in yet. If I haven't, and I'm not on the front page, I want to print a message and just stop. Otherwise, just go on. Ex: -- login.php -- if(!$auth) { // Session variable echo "You're not supposed to be here"; ** END THE PHP SCRIPT ** } -- Main Page -- include("login.php"); ... In ASP, I could use Response.End to end the script, but I can't seem to find a function that does the same thing. Any help would be appreciated. Geocrawler.com - The Knowledge Archive

« previous php.dev (#15921) next »