<?php
/**
 * This is a file used for logging out.
 *
 * PHP version 5
 *
 * @category Admin_Tool
 * @package  Admin_Tool
 * @author   Aum Infosys <falguni@auminfosys.com>
 * @license  ACE
 * @version  CVS:1.0.1
 * @link     http://auminfosys.com/
 * @filesource
 */

/**
 * This is general file which contains
 * connection file, common function file, etc.,
 *
 */
require "commonincludefiles.php";

$_SESSION["_err"] = "";
$_SESSION["cUserId"] ="";
$_SESSION["cUserName"] = "";
$_SESSION["cUserRole"] = "";
$_SESSION["cCompany_id"] = "";
$_SESSION["cCompany_name"] = "";
$_SESSION["cMenuAccess"] = "";
$_SESSION["cPageAccess"] = "";
$_SESSION["cYear"] ="";
$_SESSION["cYearname"] = "";       		



if (file_exists("menu/".$_SESSION["cUserMenuFile"]))
{
	unlink("menu/".$_SESSION["cUserMenuFile"]);
	$_SESSION["cUserMenuFile"] = "";
}
session_destroy();
?>

<script language="javascript">
    location.href="index.php?verr=Logout"
</script>
