Bug #62100
I have no session cookie after using FE_SESSION_KEY
Status: | Resolved | Start date: | 2014-10-08 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | - | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 6.2 | Is Regression: | No | |
PHP Version: | Sprint Focus: | |||
Complexity: |
Description
I use the FE_SESSION_KEY to use one login with different (out of Browser) applications. Since typo3 version 6.2 I could still login but there is no session Cookie set.
The property
AbstractUserAuthentication::dontSetCookie
is confusing me. If it is FALSE it works. if it is TRUE it doesn't. Unfortunatly it is set inFrontendUserAuthentication::__construct()
to TRUE with the following Comment:
// Disable cookie by default, will be activated if saveSessionData() is called,
// a user is logging-in or an existing session is found
Unfortunatly it is NEVER activated!
And AbstractUserAuthentication::forceSetCookie
has no effect!
And saveSessionData()
does not exists!
Here is my workaround in TypoScriptFrontendController
(of course there are many ways to fix it):
public function initFEuser() { // ... if (GeneralUtility::_GP('FE_SESSION_KEY')) { // ... if (md5(($fe_sParts[0] . '/' . $this->TYPO3_CONF_VARS['SYS']['encryptionKey'])) === (string)$fe_sParts[1]) { // ... $this->fe_user->forceSetCookie = 1; $this->fe_user->dontSetCookie = FALSE; // THIS IS MY FIX
Related issues
Associated revisions
[BUGFIX] Set session cookie when FE_SESSION_KEY is used
When a FE_SESSION_KEY is set in get/post data the cookie for the
frontend user session should be set. Due to changes in #55549 this did
not happen any more. dontSetCookie is now set to FALSE so that the
cookie is set again.
Resolves: #62100
Releases: master, 6.2
Change-Id: Iba9ee3298ba6ff3323ce862c0943cff5d35495d8
Reviewed-on: http://review.typo3.org/34013
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
[BUGFIX] Set session cookie when FE_SESSION_KEY is used
When a FE_SESSION_KEY is set in get/post data the cookie for the
frontend user session should be set. Due to changes in #55549 this did
not happen any more. dontSetCookie is now set to FALSE so that the
cookie is set again.
Resolves: #62100
Releases: master, 6.2
Change-Id: Iba9ee3298ba6ff3323ce862c0943cff5d35495d8
Reviewed-on: http://review.typo3.org/37939
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
History
#1 Updated by Gerrit Code Review 9 months ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/34013
#2 Updated by Gerrit Code Review 5 months ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37939
#3 Updated by Nils Heuermann 5 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 8983b318bed0541c026cb391798244ad560bd3ce.