[BUGFIX] FE session transfer is broken
authorDmitry Dulepov <dmitry@typo3.org>
Tue, 28 Jun 2011 12:25:04 +0000 (15:25 +0300)
committerDmitry Dulepov <dmitry@typo3.org>
Fri, 9 Sep 2011 10:52:48 +0000 (12:52 +0200)
commit4ecf0db1e3d939e1f94e837034d47c65c378e91a
tree912002ec63b354d41e2e12217439626b11a45d8e
parent69d545448f8d0b9e6609585e61b7e876a8852d70
[BUGFIX] FE session transfer is broken

The fix for #M13740 (revision 3a3a8d81) breaks FE session
transfer across top level domains.

Method tslib_fe::initFEuser() checks if there is a special
URL parameter named FE_SESSION_KEY. If that exists, it sets
$_COOKIE[$this->fe_user->name] to the passed session value.
This is very useful when using RealURL's feature to make
different language domains but use the same user for all
domains (multilanguage countries like Switzerland
or Belgium love that). However this is broken by using
$_SERVER['HTTP_COOKIE'] for FE session cookie. tslib_fe
has to be adjusted to set the same cookie.

Change-Id: Ieb77834d95ffc9f7a44bc4e739df65035be22339
Resolves: #27740
Releases: 4.4, 4.5, 4.6
Reviewed-on: http://review.typo3.org/2948
Reviewed-by: Dmitry Dulepov
Tested-by: Dmitry Dulepov
typo3/sysext/cms/tslib/class.tslib_fe.php