LogoutController.inc 211 B

12345678910
  1. <?php
  2. class LogoutController implements IController {
  3. public function execute() {
  4. $view = new View();
  5. $session = new Session();
  6. $session->clear();
  7. $header = new Header();
  8. $header->redirect("/");
  9. }
  10. }