You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
423 B

  1. <?php
  2. use Movim\Controller\Base;
  3. use Movim\Cookie;
  4. class DisconnectController extends Base
  5. {
  6. function load()
  7. {
  8. $this->session_only = false;
  9. }
  10. function dispatch()
  11. {
  12. // Just in case
  13. requestURL('http://localhost:1560/disconnect/', 2, ['sid' => SESSION_ID]);
  14. Session::dispose();
  15. // Fresh cookie
  16. Cookie::renew();
  17. $this->redirect('login');
  18. }
  19. }