/var/www/hkosl.com/ifapc/html_20210817/IFAPC2021/application/controllers/Logout.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
require_once APPPATH 'core/MY_Controller_2.php';

class 
Logout extends MY_Controller_2
{
    public function 
__construct(){
        
parent::__construct();
        if (!
is_osl()) {
            exit();
        }
    }

    public function 
index()
    {
        unset(
$_SESSION['member_id']);
        
redirect(front_url('application'));
    }
}