Logout function somehow disabled

Permalink
Hi,

Since I recreated a login page at a different URL I noticed that the logout function was not working.

I.e. moved login page to:
www.www.mydomain.com/index.php/new/login...

I updated the URL in the file: concrete/tools/page_controls_menu_js.php
Such that:
View::url('/new/login', 'logout')


However this hasn't helped.

It seems that a file at the extension "login/logout" never exisited.. So curious as to how this is normally done.

QUESTION:
Short of creating a logout.php page calling the login controller's - logout() function and redirecting users - Anyone got any better ideas how to officially logout a user?

 
cowland replied on at Permalink Best Answer Reply
Just for reference - logout.php can be made simply with:

<?php  defined('C5_EXECUTE') or die("Access Denied.");
   Loader::controller('/login');
   $nlc = new LoginController();
   $nlc->logout();
?>

Still, any ideas how logout.php works normally without being present as a file? Cheers.