/var/www/hkosl.com/onegolf/webadmin/logout.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
    
include 'config.php';

    if (isSet(
$_SESSION['loginname'])) {
        unset(
$_SESSION['loginname']);
        unset(
$_SESSION['password']);
        unset(
$_SESSION['loginid']);
        unset(
$_SESSION['cmsloginid']);
        unset(
$_SESSION['role']);
        unset(
$_SESSION['cmsrole']);

        
header("Location: login.php");
        exit;
    }
?>