[PHP-DEV] ASP-like Response.End From: Steve Cleveland (archiver <email protected>)
Date: 02/23/00

This message was sent from Geocrawler.com by "Steve Cleveland" <clevelas <email protected>>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>