Project

General

Profile

Actions

Bug #81707

closed

Wrong User Information

Added by Joseph Linden over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
felogin
Target version:
-
Start date:
2017-06-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I am noticing very strange behavior using sr_feuser_register and felogin. After a successful login, I show a welcome message at the top of the screen, stating
"You are current signed in as Mr/Ms ###LAST_NAME###". What is odd is that sometimes the wrong last name is show for the logged in user. Taking a look at the database, both users were indeed signed in at the same time. Even odder is that sometimes the information is correct. I had flushed all cookies, frontend session data, etc. but the problem persists. I am not sure if this is a problem with felogin, the sr_feuser_register extension, the core, or simply my implementation.

The greeting message is created in the typoscript:

lib.userMessage = TEXT
lib.userMessage.value = You are currently logged in as {TSFE:fe_user|user|username}.

What could be causing this?

Actions #1

Updated by Mathias Schreiber over 7 years ago

wrap the TEXT into an COA_INT so it's not cached.

Actions #2

Updated by Mathias Schreiber over 7 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber
Actions #3

Updated by Joseph Linden over 7 years ago

It looks like that solved the problem

Actions #4

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from Needs Feedback to Closed
  • Assignee deleted (Mathias Schreiber)

@Joseph Linden I close your issue, thank you for your answer.

The TypoScript {TSFE:fe_user|user|username} requires to be inside a COA_INT to avoid seeing only the last cached version :) Another example could be found in the documentation: https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/CoaAndCoaInt/Index.html#examples

if you think that this decision is wrong, please reopen it or open a new issue with a reference to this one.

Actions

Also available in: Atom PDF