/** * WARNING: Must be called before provideConnection(). */ private function regenerateSessionOnLogin() { if (!$this->shouldLogin()) { return; } // we are going to log in, so we get a clean session // this needs to be done before a connection // is created, because we pass cookie file name // that contains session_id into AIS2CurlConnection // If we regenerated the session id afterwards, // we could not find the cookie file after a redirect FajrUtils::dropSession(); }
/** * WARNING: Must be called before provideConnection(). */ private function regenerateSessionOnLogin() { $login = Input::get('login'); $krbpwd = Input::get('krbpwd'); $cosignCookie = Input::get('cosignCookie'); // FIXME this should be refactored if ($login !== null && $krbpwd !== null || $cosignCookie !== null) { // we are going to log in, so we get a clean session // this needs to be done before a connection // is created, because we pass cookie file name // that contains session_id into AIS2CurlConnection // If we regenerated the session id afterwards, // we could not find the cookie file after a redirect FajrUtils::dropSession(); } }