Hi,

i use FCKeditor on several sites, but i have an issue for upload :

For web simple sites, i can set $cookie_domain on d6, or ini_set('session.cookie_domain', $domain); on d5

But i can't use FCK FileBrowser and uploads with Domain_Access sites, because as soon as i set a $cookie_domain = "example.com", i can't access other "example2.net" domains (Redirect loop).

COULD it be possible to get rid of $cookie_domain to make fckeditor uploads run ?

Thank you very much.

Comments

Jorrit’s picture

Could you explain what Domain_Access is?

chipway’s picture

Yes,

Domain Access is a module that manages a single instal and single DB for many sites. It is very useful to publish a node to several domains at once, for example to www.example.com, www.example.com, www.example.net, www.example.tv, ...

More details on http://drupal.org/project/domain

Thank you for your help.

Jorrit’s picture

Title: Get rid of $cookie_domain for fckeditor uploads under domain access » Incompatibility with Domain Access module

What happens if you set $cookie_domain to $_SERVER['SERVER_NAME']? This assumes you're using Apache. Otherwise, try $_SERVER['HTTP_HOST'], but check if the variable exists and is valid as well, as it is user-supplied.

chipway’s picture

UPDATE: It works !

With $cookie_domain = $_SERVER['SERVER_NAME']; and only FCKeditor - WYSIWYG HTML editor 6.x-2.x-dev (2009-May-14) (no previous version).

Thank you very much.
===============
Thank you.

i tried both $_SERVER['SERVER_NAME'] then $_SERVER['HTTP_HOST'].

The pros is : i can switch form one domain to another.

The cons is : i can't upload files. i get Uploader is disabled ... config.php" file

Any other idea welcome.

Thank you

chipway’s picture

Status: Active » Fixed

Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

AgentJay’s picture

Status: Closed (fixed) » Active

I have the same issue. What was the fix?

AgentJay’s picture

Status: Active » Closed (works as designed)

I resolved my issue. It was due to using the Domain Access table prefix settings.

I had copied the sessions table which caused the cookie_domain which appears to be tied to the sessions table to keep changing.

I deleted the table prefix copy of the sessions table and everything worked great.