<?php include_once "include/session.php"; session_start(); $user = get_loggedin_user(); clear_current_user(); header("Location: login.php");
public function invoke_delete_account() { $uid = get_loggedin_user()->uid; $this->user_model->delete_user($uid); clear_current_user(); header("Location: login.php"); }