[TYPO3-core] RFC: multi-multi-domain cookies

Holzinger Franz franz at fholzinger.com
Mon Jan 9 09:51:27 CET 2006


Hello Martin,

>sub1.domain1
>sub2.domain1
>sub1.domain2
>sub2.domain2
>
>Solution: Extend $TYPO3_CONF_VARS['SYS']['cookieDomain'] so that it can take a regexp. Match the requst host against the regexp and use it as the cookieDomain
>
>/(?:domain1|domain2)$/
>
>other example: /(?:domain1|domain2)\.com$/
>
>
>  
>
I do not understand your example.
Why not this?
/\.(domain1|domain2)\.com$/

And the description should refer to
http://de.php.net/manual/en/function.setcookie.php

The 2 blocks contain identical code.
Introduce a variable for

>if ($this->lifetime > 0) {
>
>$timevar = time()+$this->lifetime;}
>
else $timevar = 0;

Then the 2 blocks can be joined to one.

Greets,

Franz






More information about the TYPO3-team-core mailing list