Exemplo n.º 1
0
 /**
  * The Session cookie is set to a secure cookie, when SSL is mis-configured, it can cause the PHP session cookie ID to change on each page view.
  * Indicate to user how to solve this particular use case by forcing secure connections.
  *
  * @return string
  */
 protected function getMessageExceptionNoAccessWhenInsecureConnectionMayBeUsed()
 {
     $message = '';
     if (Url::isSecureConnectionAssumedByPiwikButNotForcedYet()) {
         $message = '<br/><br/>' . Piwik::translate('Login_InvalidNonceSSLMisconfigured', array('<a href="?module=Proxy&action=redirect&url=' . urlencode('<a href="http://piwik.org/faq/how-to/faq_91/">') . '">', '</a>', 'config/config.ini.php', '<pre>force_ssl=1</pre>', '<pre>[General]</pre>'));
     }
     return $message;
 }