Project

General

Profile

Actions

Bug #15304

closed

Scope of BE- and FE-Cookie: multi typo3 instance on one domain

Added by old_hkdennis2k over 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
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)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #14532: scope of BE- and FE-Cookie: can't cope with multidomain-setupClosedSebastian Kurfuerst2005-02-04

Actions
Actions #1

Updated by Sebastian Kurfuerst over 18 years ago

Hi,
I think this has been fixed in TYPO3 beta1.

Actions

Also available in: Atom PDF