示例#1
0
<?php

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