Closed (won't fix)
Project:
Shared Sign-On
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2008 at 11:00 UTC
Updated:
3 Feb 2013 at 18:02 UTC
FCKeditor requires you to set $cookie_domain for its upload functionality (the uploader bootstraps Drupal and needs to be able to read your cookies). Unfortunately, if you have multiple domains using Domain Access and rely on Shared Sign-On for authentication, you can't just set $cookie_domain = 'mydomain.com'
However it seems to work if you automatically generate the $cookie_domain from $_SERVER['HTTP_HOST'], by putting the following two lines in your settings.php
preg_match('/[^.]+\.[^.]+$/', $_SERVER['HTTP_HOST'], $cookie_domain_matches);
$cookie_domain = $cookie_domain_matches[0];
I'm mainly posting this to help anyone else looking for a solution, though I'd be interested to know if there are any downsides to doing this.
Comments
Comment #1
duaelfrThis version of Shared Sign-On is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.