Actions
Bug #15304
closedScope of BE- and FE-Cookie: multi typo3 instance on one domain
Start date:
2005-12-22
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
3.8.1
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If you installed more than one typo3 instance on same domain, the user session cookie will invaild and overwrite eachother.
Solution: apply typo3 site path into cookie
----------
if (($this->newSessionID || $this->forceSetCookie) && $this->lifetime==0 ) {
if (!$this->dontSetCookie) {
//SetCookie($this->name, $id, 0, '/');
$folder=substr(t3lib_div::getIndpEnv('TYPO3_SITE_URL'),strlen(t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST')));;
SetCookie($this->name, $id, 0, $folder);
if ($this->writeDevLog) t3lib_div::devLog('Set new Cookie: '.$id, 't3lib_userAuth');
}
}
// If it is NOT a session-cookie, we need to refresh it.
if ($this->lifetime > 0) {
if (!$this->dontSetCookie) {
//SetCookie($this->name, $id, time()+$this->lifetime, '/');
$folder=substr(t3lib_div::getIndpEnv('TYPO3_SITE_URL'),strlen(t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST')));;
SetCookie($this->name, $id, 0, $folder);
if ($this->writeDevLog) t3lib_div::devLog('Update Cookie: '.$id, 't3lib_userAuth');
}
}
(issue imported from #M2078)
Updated by Sebastian Kurfuerst almost 19 years ago
Hi,
I think this has been fixed in TYPO3 beta1.
Actions