Location: PHPKode > projects > Basic Announce > Basic Announce Version 4.0/logout.php
<?php
################################################################################
##              -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =-                 #
## --------------------------------------------------------------------------- #
##  ApPHP AdminPanel Pro                                                       #
##  Developed by:  ApPHP <hide@address.com>                                      #
##  License:       GNU LGPL v.3                                                #
##  Site:          http://www.apphp.com/php-adminpanel/                        #
##  Copyright:     ApPHP AdminPanel (c) 2006-2011. All rights reserved.        #
##                                                                             #
################################################################################
   
   // Initialize the session.
   session_start();
    
   // Unset all of the session variables.
   $_SESSION = array();
   
   // If it's desired to kill the session, also delete the session cookie.
   // Note: This will destroy the session, and not just the session data!
   if (isset($_COOKIE[session_name()])) {
      setcookie(session_name(), '', time()-42000, '/');
   }
   
   // Finally, destroy the session.
   session_destroy();
   
   //header("Location: index.php?log=out");
   echo "<script type='text/javascript'>top.location.href='index.php'</script>";
   exit;
 
?>
Return current item: Basic Announce