<?php
require_once __DIR__ . '/../includes/functions.php';

// 清除登录状态
session_destroy();

// 清除记住我cookie
if (isset($_COOKIE['remember_token'])) {
    setcookie('remember_token', '', time() - 3600, '/');
}

// 跳转到登录页
header('Location: ' . SITE_URL . '/mobile/login.php');
exit;
