<?php session_start(); require_once '../core/config.php'; $Authenticate = new Authenticate(); if (!$Authenticate->validClientSession($_SESSION['client']['client_id'], $_SESSION['client']['access_token'])) { header("Location:" . RESOURCE_PATH_DIY . "login"); } $logout = Logger::logPlobizUser($_SESSION['client']['client_id'], $_SESSION['client']['access_token'], Authenticate::$device_token, Authenticate::$mac_id, Authenticate::$platform, 0); unset($_SESSION); session_destroy(); header("Location:" . RESOURCE_PATH_DIY . "login");