Example #1
0
function performLogout()
{
    $JSONerror->state = 0;
    $JSONerror->message = 'Success';
    if (!sessionUnInit()) {
        $JSONerror->state = 1;
        $JSONerror->message = 'An unexpected Error accured';
        print_r(json_encode($JSONerror));
    }
}
Example #2
0
<?php

include_once 'include/session.php';
sessionUnInit();