Commit 7beeef7d authored by colan's avatar colan

Issue #3014381 by colan: Set the cookie domain and path for subdirectory sites.

parent 02b0f79b
......@@ -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; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment