<?php session_start();
   include("./../config/config.php");
   if($_SESSION[ADD_TAG.'_UserId_vendor']!=''){
   
    				  $alertType='1';// ADMIN=1 USER =0
   				  $userId= $_SESSION[ADD_TAG.'_UserId_vendor'];
   				  $first_name= $_SESSION[ADD_TAG.'_FirstName_vendor'];
   				  $email_id= $_SESSION[ADD_TAG.'_EmailID_vendor'];
   				  $mobile_no= $_SESSION[ADD_TAG.'_MoBilENo_vendor'];
   				
   				  $pagename='Admin Logout ';
   				  $parameter='Logout Successful for Admin ';
   				  $alertdisplay=' For Email ID '.$email_id  ;
   				  //addtocsystem_log($pagename,$parameter,$alertdisplay,$alertType,$userId);
   				  
   				  $_SESSION[ADD_TAG.'_UserId_vendor']='';
   				  $_SESSION[ADD_TAG.'_FirstName_vendor']='';
   				  $_SESSION[ADD_TAG.'_EmailID_vendor']='';
   				  $_SESSION[ADD_TAG.'_MoBilENo_vendor']='';
   				  
   				  unset($_SESSION);
   				  
   				  header('Location: login-role/vendor');
   }
   if($_SESSION[ADD_TAG.'_UserId_user']!=''){
        $alertType='1';// ADMIN=1 USER =0
   				  $userId= $_SESSION[ADD_TAG.'_UserId_user'];
   				  $first_name= $_SESSION[ADD_TAG.'_FirstName_user'];
   				  $email_id= $_SESSION[ADD_TAG.'_EmailID_user'];
   				  $mobile_no= $_SESSION[ADD_TAG.'_MoBilENo_user'];
   				
   				  $pagename='Admin Logout ';
   				  $parameter='Logout Successful for Admin ';
   				  $alertdisplay=' For Email ID '.$email_id  ;
   				  //addtocsystem_log($pagename,$parameter,$alertdisplay,$alertType,$userId);
   				  
   				  $_SESSION[ADD_TAG.'_UserId_user']='';
   				  $_SESSION[ADD_TAG.'_FirstName_user']='';
   				  $_SESSION[ADD_TAG.'_EmailID_user']='';
   				  $_SESSION[ADD_TAG.'_MoBilENo_user']='';
   				  
   				  unset($_SESSION);
   				  
   				  header('Location: ./../login-role/user');
       
       
   }
    
    ?>