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.
I found that the cookie_domain configured on settings.php was not properly honoured, I think using whatever drupal sets for its global variables a better approach.
Comment | File | Size | Author |
---|---|---|---|
#2 | authcache-better_cookie_defaults-2792975-2.patch | 777 bytes | hanoii |
Comments
Comment #2
hanoiiComment #8
hanoiiI am not sure why these are failing. I tried to run them, but on my local it behaves the same with or without the patch.
Comment #9
znerol CreditAttribution: znerol commentedWhen running tests, make sure there is no configuration but the mysql connection and the hash salt in your
settings.php
.Comment #10
znerol CreditAttribution: znerol commentedAll cookie related ini settings are initialized during a normal bootstrap from within drupal_settings_initialize() and drupal_environment_initialize().
Especially note the following snipped from
drupal_settings_initialize()
:So the respective ini-setting is changed, but only only if
$cookie_domain
is valid. For that reason I think that usingini_get('session.cookie_domain')
is safer than using the value directly.What exactly is the problem you observed? How did you configure your site?
Comment #11
znerol CreditAttribution: znerol commentedClosing since there was no feedback.