We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    In weblogin.class.php replace the Logout() function with this (note: untested):

    function Logout($type, $loHomeId = ''")	{
    
                    global $modx;
    	$this->Type = $type;
    
    
                    if ($loHomeId != "") {
                            $loArray = explode("'",$loHomeId);
    
           
                                    foreach($loArray as $id)  {   
                                         $id = trim($id);
    
                                         if ($modx->getPageInfo($id))  {
                                                $url = $modx->makeURL($id);
                                                 break;
                                         }
    
                                     }
    
                      } else {   // $loHomeId not set, send them to site_start
     
                             $url =  $modx->config['site_start'];    
    
                      }
    
    /* do events and log out user */
    	
    		$this->OnBeforeWebLogout;
    		$this->StatusToOffline();
    		$this->SessionHandler('destroy');
    		$this->OnWebLogout;
    
    /* send the user to the logout page selected above */
                                   
    		if ($type !== 'taconite') {   // don't know if this test is really necessary any more
    		       $modx->sendRedirect($url,0,'REDIRECT_REFRESH');
    
    		}
    	}

      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 15716
      • 57 Posts
      It just logs the user out and sends them to the LoginHome. Skips the LogoutHome pages...

      Thank you so much for the help. Hopefully we’re close to getting this figured out.
        • 3749
        • 24,544 Posts
        Oops. Take out the extra dollar sign in the foreach() statement. (fixed in the message -- but maybe still there in your code). embarrassed

        If that doesn’t work, it will take some debugging to see what’s happening. I’m afraid the debugging will have to be on your site because it will need all the documents, permissions, and users to be there.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting