1

When I login to example.com via Safari web browser, I get a message that says "Access Denied. You are not authorized to access this page."

I can login properly when using Chrome, Firefox, and Internet Explorer.

I can login properly using Safari in the local instance of the site.

$base_url is set as http://www.example.com and $cookie_domain is set as .example.com. I've also tried commenting out $cookie_comain.

I've already added

// Change base_url to HTTPS ($base_url may be explicitly set by settings.php)
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
  global $base_url;
  $base_url = str_replace('http://', 'https://', $base_url);
}

to the Secure Page module as suggested in https://drupal.org/node/863562#comment-3266304.

I've cleared the Drupal cache and Safari browser cache.

$conf['https'] is set to TRUE.

This happens on Safari 5.1.7, but not on Safari 3.2.2.

Compared the Http Headers with another Drupal site using Secure Pages. Didn't find anything fishy.

  • It's almost certainly cache - clear your cookies too – Clive Jun 11 '14 at 7:59
  • Done that. Issue persists. – Randell Jun 13 '14 at 1:34
  • did you ever solved this? I think I have the same issue – luisluix Aug 5 '16 at 14:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.