Пример #1
0
 public function testLogOut()
 {
     $s = new SessionController();
     $id = getUID();
     $c = new LogoutController();
     $res = $c->logout();
     if ($s->isLoggedIn()) {
         echo "User wasn't logged out...";
     }
 }
Пример #2
0
<?php

include_once dirname(__FILE__) . '\\..\\util.php';
require_controller("logoutController");
use Qnet\Controller\LogoutController;
$c = new LogoutController();
$uid = $c->logout();
header("Location: /Qnet/target/classes/php/qnet/ui/login.php");