[TYPO3-dev] Is config key 'cookieDomain' worth a patch?

Xavier Perseguers typo3 at perseguers.ch
Sat Jan 3 14:26:35 CET 2009


Hi!

>> 1) Either create a second cookieDomain parameter to be used for FE (or BE)
>> 2) Better would be to add this configuration property to the domain
>> record itself. This way it would fall back to current behaviour if not
>> configured but would allow me to handle even more complex scenario.
>>
>>
>> What is your point of view? TYPO3 4.3 is not yet out and thus it would
>> still be time to do this.
> 
> My suggestion for typo3conf/localconf.php in such cases:
> 
> if (TYPO3_MODE == 'BE') {
> 	$TYPO3_CONF_VARS['SYS']['cookieDomain'] = $_SERVER['HTTP_HOST'];
> }
> else {
> 	$TYPO3_CONF_VARS['SYS']['cookieDomain'] = '.domain.tld';
> }

That's a good idea! I never think of this file as a standard PHP file :-)

I will try Stephen's idea though, just to provide here a full vision of 
what is possible.

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en

One contribution a day keeps the fork away




More information about the TYPO3-dev mailing list