<?php

session_start();

# Clear and destroy the session if the user is logged in.
if (isset($_SESSION['user'])) {
    $_SESSION = array();
    session_destroy();
}

# Take the user to the main board.
header("Location:/myboard/");

?>