<?php
require_once __DIR__ . '/../../app/core/bootstrap.php';
require_once __DIR__ . '/../../app/core/project_permissions.php';

$uid = gp_current_user_id();
gp_log_action(crm_pdo(), 'LOGOUT', 'user', $uid, 'User logged out');
auth_logout();
session_destroy();
redirect('/gopools/public/auth/login.php');
