PHP Classes

File: logout.php

Recommend this page to a friend!
  Classes of Igor Feghali   Power 2 Protect   logout.php   Download  
File: logout.php
Role: Example script
Content type: text/plain
Description: Logout script
Class: Power 2 Protect
Restrict user access to pages based on permissions
Author: By
Last change: Accessible without user login
Date: 17 years ago
Size: 794 bytes
 

Contents

Class file image Download
<?

/* #INFO############################################
Author: Igor Feghali
(c) 2003-2006, ifeghali@interveritas.net
----------------------------------------------------
This file is part of Power 2 Protect Class
----------------------------------------------------
################################################# */

// #INCLUDES########################################
include("config.inc.php");
// #################################################

// #DESTROY SESSION#################################
$_SESSION = Array();
session_unset();
session_destroy();
// #################################################

// #REDIRECT URL####################################
header("location: ".$location_logout);
// #################################################

?>