You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
423 B

<?php
use Movim\Controller\Base;
use Movim\Cookie;
class DisconnectController extends Base
{
function load()
{
$this->session_only = false;
}
function dispatch()
{
// Just in case
requestURL('http://localhost:1560/disconnect/', 2, ['sid' => SESSION_ID]);
Session::dispose();
// Fresh cookie
Cookie::renew();
$this->redirect('login');
}
}