1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/app/controllers/DisconnectController.php
2016-03-29 14:12:33 +02:00

21 lines
440 B
PHP

<?php
use Movim\Controller\Base;
class DisconnectController extends Base
{
function load() {
$this->session_only = false;
}
function dispatch() {
$session = \Sessionx::start();
requestURL('http://localhost:1560/disconnect/', 2, ['sid' => $session->sessionid]);
$pd = new modl\PresenceDAO();
$pd->clearPresence();
Session::dispose();
$this->redirect('login');
}
}