"Fossies" - the Fresh Open Source Software Archive

Member "node-runner-0.6.0/html/logout.php" (2 Sep 2004, 296 Bytes) of package /linux/www/old/node-runner-0.6.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "logout.php" see the Fossies "Dox" file reference documentation.

    1 <?
    2 require_once("connect.php");
    3 
    4 // Make sure user is really logged in, flush the session vars, then redirect.
    5 if ($_SESSION["isloggedin"] == $glbl_hash) {
    6   unset($_SESSION["isloggedin"]);
    7   unset($_SESSION["username"]);
    8   unset($_SESSION["isadmin"]);
    9 }
   10 
   11 header("Location: ".$nr_url);
   12 exit;
   13 
   14 ?>