<?php session_start(); if( isset( $_SESSION['username'] ) ) { unset( $_SESSION['username'] ); require dirname(__DIR__)."/vendor/autoload.php"; $db = new \PDO('sqlite:'.dirname(__DIR__).'/html/data/data.db'); $auth = new \Delight\Auth\Auth( $db, null, null, false ); $auth->logout(); } header("Location: /login"); ?>