diff options
Diffstat (limited to 'app/class/Controller.php')
-rw-r--r-- | app/class/Controller.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/class/Controller.php b/app/class/Controller.php index c631726..2b38988 100644 --- a/app/class/Controller.php +++ b/app/class/Controller.php @@ -161,4 +161,16 @@ class Controller Model::sendflashmessage($count . ' / ' . $total . ' ' . $message, 'error'); } } + + /** + * Destroy session and cookie token in user database + */ + public function disconnect() + { + $this->session->addtosession('user', ''); + $this->user->destroysession($this->session->wsession); + $this->session->addtosession('wsession', ''); + $this->usermanager->add($this->user); + + } } |