topical media & game development

talk show tell print

basic-php-12-auth.inc.php / php



  <?php
  session_start();
  if (isset(_SESSION['logged']) && _SESSION['logged'] == 1) {
    //Do Nothing
  } else {
    redirect = _SERVER['PHP_SELF'];
    header("Refresh: 5; URL=login.php?redirect=redirect");
    echo "You are being redirected to the login page!<br>";
    echo "(If your browser doesn't support this, " .
         "<a href=\"login.php?redirect=redirect\">click here</a>)";
    die();
  }
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.