<?php include("_ayarlar.php"); ?>
<?php include("_fonksiyonlar.php"); ?>
<?php include("_header.php"); ?>

<section class="section">
    <div class="container">

<?php 

    session_destroy();
    setcookie("oturum", "", time() - (86400 * 30), "/");

    echo '<div class="alert alert-success" role="alert">
        <h4 class="alert-heading">Güle güle!</h4>
        <p>Oturum başarıyla sonlandırıldı.</p>
        <hr>
        <p class="mb-0">Ana sayfaya yönlendiriliyorsunuz.</p>
    </div>';

    header("Refresh: 3; url=index.php");

?>

    </div>
</section>

<?php include("_footer.php"); ?>