public function Gdn_Dispatcher_AppStartup_Handler($Sender) {
      header('P3P: CP="CAO PSA OUR"', TRUE);
      
      if (!Gdn::Session()->IsValid() && $SSO = Gdn::Request()->Get('sso')) {
         SaveToConfig('Garden.Registration.SendConnectEmail', FALSE, FALSE);
         
         $UserID = FALSE;
         try {
            $UserID = Gdn::UserModel()->SSO($SSO);
         } catch (Exception $Ex) {
            Trace($Ex, TRACE_ERROR);
         }
         
         if ($UserID) {
            Gdn::Session()->Start($UserID, TRUE, TRUE);
            Gdn::UserModel()->FireEvent('AfterSignIn');
         } else {
            // There was some sort of error. Let's print that out.
            Trace(Gdn::UserModel()->Validation->ResultsText(), TRACE_WARNING);
         }
      }
   }