<?php
session_start();
unset($_SESSION['username']);
unset($_SESSION['user_id']);
echo "<script>window.location.href = 'index.php';</script>";