12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- namespace Widget;
- use Widget\Base\Users;
- if (!defined('__TYPECHO_ROOT_DIR__')) {
- exit;
- }
- class Logout extends Users implements ActionInterface
- {
-
- public function action()
- {
-
- $this->security->protect();
- $this->user->logout();
- self::pluginHandle()->logout();
- @session_destroy();
- $this->response->goBack(null, $this->options->index);
- }
- }
|