Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello. On two sites we developed, both Drupal 7, Panels for front page, Views Slideshows for teasers on front page, if the setting "Force redirect if cookie is not set." is on, the site will not load properly in Safari and Mobile Safari. It will load partly, stop, reload, stop, reload, in an almost infinite loop. Once this option is switched OFF, the site loads normally in Safari. No problems in other browsers though.
Anyone experienced similar? What exactly does this option do in detail?
Comments
Comment #1
attiks CreditAttribution: attiks commentedThe option is added so you can force the browser to set a cookie containing the screen width, it's an experimental feature and should not be used in production (it's disabled by default).
In short the javascript code does the following:
checks if resp_img is set
if not check if cookie can be set
if so set the resp_img cookie and reload the page
I heard before that safari can give problems with cookies, so if you can give more information we might be able to debug this.
Comment #2
attiks CreditAttribution: attiks commented@gateone any chance you can debug this and see if the cookie gets set/passed?
Comment #3
attiks CreditAttribution: attiks commentedComment #4
Jelle_SUsing Safari 5.1.7 everything works as expected.
Could you make sure that in
Preferences > Privacy
Block cookies is not set to "Always"?Comment #5
Jelle_SWe forgot to do a check if cookies are supported or not somewhere else. Fixed in the latest dev version.