Ekdant-Online-Store/admininistrator/controller/common/logout.php

19 lines
389 B
PHP
Raw Normal View History

2024-08-06 12:21:00 +00:00
<?php
namespace Opencart\Admin\Controller\Common;
/**
* Class Logout
*
* @package Opencart\Admin\Controller\Common
*/
class Logout extends \Opencart\System\Engine\Controller {
/**
* @return void
*/
public function index(): void {
$this->user->logout();
unset($this->session->data['user_token']);
$this->response->redirect($this->url->link('common/login', '', true));
}
}