summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColan Schwartz2018-11-16 23:10:49 (GMT)
committerColan Schwartz2018-11-16 23:10:49 (GMT)
commit7beeef7d733f4819d03ec9809b89a0059943739f (patch)
treeebc831af9c8ce1616d774c9c17dfd3ae4116655f
parent02b0f79bca68443780755368d12a1fae57bebcff (diff)
Issue #3014381 by colan: Set the cookie domain and path for subdirectory sites.HEAD7.x-3.x
-rw-r--r--Provision/Config/Drupal/provision_drupal_settings_7.tpl.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/Provision/Config/Drupal/provision_drupal_settings_7.tpl.php b/Provision/Config/Drupal/provision_drupal_settings_7.tpl.php
index 2cdf94e..b8b5280 100644
--- a/Provision/Config/Drupal/provision_drupal_settings_7.tpl.php
+++ b/Provision/Config/Drupal/provision_drupal_settings_7.tpl.php
@@ -23,6 +23,8 @@ print '<?php' ?>
*/
if (isset($_SERVER['SITE_SUBDIR']) && isset($_SERVER['RAW_HOST'])) {
$base_url = 'http://' . $_SERVER['RAW_HOST'] . '/' . $_SERVER['SITE_SUBDIR'];
+ $cookie_domain = "." . $_SERVER['RAW_HOST'];
+ ini_set('session.cookie_path', '/' . $_SERVER['SITE_SUBDIR'] . '/');
}
<?php endif; ?>