[TYPO3-core] RFC: #10266: Bugfix: No user authentication for >1 TYPO3 installation under one domain

Marcus Krause marcus#exp2009 at t3sec.info
Sun Mar 15 12:51:57 CET 2009


Hi,

This is SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=10266

Branches: trunk, 4-2, 4-1


Problem:
TYPO3 sets cookies with path variable = '/'. This prevents users to
login to more than one TYPO3 instance on one domain.
Given a setup like
example.org/cms1
example.org/cms2
where in cms1 and cms2 are two different TYPO3 instances reside. Cookies
from cms1 will overwrite those from cms2 vice versa

Solution:
Apply paths to setcookie() calls whenever possible.


Note:
The attached patch introduces a new IndpEnv 'TYPO3_SITE_PATH' for
t3lib_div::getIndpEnv().
In addition a unit testcase is added for it.
Patch has been made against trunk.
For the 4-1 and 4-2, obviously the testcase has to be removed.


Marcus.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 10266.diff
Type: text/x-diff
Size: 6164 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090315/cc69969b/attachment.diff 


More information about the TYPO3-team-core mailing list