[TYPO3-dev] Is config key 'cookieDomain' worth a patch?
Dmitry Dulepov
dmitry at typo3.org
Sat Jan 3 14:09:05 CET 2009
Hi!
Xavier Perseguers wrote:
> ==== WHAT I SUGGEST ====
>
> 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';
}
--
Dmitry Dulepov
TYPO3 core team
In the blog: http://typo3bloke.net/post-details/why_your_typo3_installation_can_be_slow/
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
More information about the TYPO3-dev
mailing list