<?php
// member/logout.php
require_once '../config.php';

// Clear session
$_SESSION = array();
session_destroy();

// Clear remember me cookie
setcookie('soulguard_session', '', time() - 3600, '/');

header('Location: login.php');
exit;
?>