Bug #81707
closedWrong User Information
0%
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?
Updated by Mathias Schreiber over 7 years ago
wrap the TEXT into an COA_INT so it's not cached.
Updated by Mathias Schreiber over 7 years ago
- Status changed from New to Needs Feedback
- Assignee set to Mathias Schreiber
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.