opensupports/server/controllers/user/logout.php

18 lines
370 B
PHP
Raw Normal View History

2016-04-29 02:20:42 +02:00
<?php
class LogoutController extends Controller {
const PATH = '/logout';
public function validations() {
return [
'permission' => 'any',
'requestData' => []
];
}
2016-04-29 02:20:42 +02:00
public function handler() {
$session = Session::getInstance();
$session->closeSession();
Response::respondSuccess();
}
}