[TYPO3-english] cookieDomain issue

Jigal van Hemert jigal.van.hemert at typo3.org
Fri Feb 12 21:30:02 CET 2016


Hi,

On 12/02/2016 11:42, Loek Hilgersom wrote:
> I'm having an issue with the [SYS][cookieDomain] setting.
>
> I have a production server on www.domain.com, including a number of
> subdomains, and test and acceptation servers on test.domain.com and
> acceptation.domain.com. Because we need the cookieDomain set at
> '.domain.com' we are running into BE-login issues on the test and acc
> servers, obviously because the cookies of the different servers
> interfere with eachother. I can only login on the test server after
> removing the session cookie for .domain.com

You can use regular expressions in the cookieDomain setting. E.g. 
/\.(sub1|sub2|sub3)\.domain\.com$/ to match the three subdomains sub1, 
sub2 and sub3. It will not match test.domain.com or acception.domain.com .

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-english mailing list