public function handleLogout()
	{
		if (Request::get('logout') !== null) {
			$this->getUserService()->logout();

			//Strip the logout parameter & redirect to the original destination page
			header('Location: ' . __BASE_URL . preg_replace('/(logout&|\?logout$|&logout$)/', '', Request::getRequestPath(__BASE, false)));
			exit;
		}
	}
public function handleLogout()
	{
		if (Request::get('logout') !== null) {
			$this->getUserService()->logout();

			//Strip the logout parameter & redirect to the original destination page
			header('Location: ' . __BASE_URL . preg_replace('/(logout&|\?logout$|&logout$)/', '', Request::getRequestPath(__BASE, false)));
			exit;
		}
	}
public function handleLogout ( ) { if ( Request :: get ( 'logout' ) !== null ) { $ this -> getUserService ( ) -> logout ( ) ; //Strip the logout parameter & redirect to the original destination page
 header ( 'Location: ' . __BASE_URL . preg_replace ( '/(logout&|\?logout$|&logout$)/' , '' , Request :: getRequestPath ( __BASE , false ) ) ) ; exit ; } }
Handle user logout
Handle user logout