Exemple #1
0
 /**
  * @return bool
  */
 public static function isSecureConnectionAssumedByPiwikButNotForcedYet()
 {
     $isSecureConnectionLikelyNotUsed = Url::isSecureConnectionLikelyNotUsed();
     $hasSessionCookieSecureFlag = ProxyHttp::isHttps();
     $isSecureConnectionAssumedByPiwikButNotForcedYet = Url::isPiwikConfiguredToAssumeSecureConnection() && !SettingsPiwik::isHttpsForced();
     return $isSecureConnectionLikelyNotUsed && $hasSessionCookieSecureFlag && $isSecureConnectionAssumedByPiwikButNotForcedYet;
 }