Project

General

Profile

Actions

Bug #62100

closed

I have no session cookie after using FE_SESSION_KEY

Added by tobi no-lastname-given about 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-10-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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 in
FrontendUserAuthentication::__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 1 (0 open1 closed)

Related to TYPO3 Core - Task #55549: Only set FE user cookie if session data or user logged inClosedBenni Mack2014-02-01

Actions
Actions

Also available in: Atom PDF