[TYPO3-dev] FE-user becomes someone else

Ernesto Baschny [cron IT] ernst at cron-it.de
Wed Sep 9 19:29:19 CEST 2009


JoH asenau schrieb:
>>> This used to help here. Somehow the condition itself made a
>>> difference and fixed it in 4.1.x. Sadly I've never been able to
>>> explain it.
>>>
>>> [loginUser = *]
>>> config.no_cache=1
>>> [end]
>> Never, EVER do this.
>> Don't even think about it.
>>
>> Disabling the cache is a bad thing :)
> 
> But you could do something like this instead:
> 
> [loginUser = *]
> tt_content.login = COA_INT
> [global]
> 
> This way you would get one cached page without any _INT element as a default
> output, that will only change if a user is logged in.

This is more or less what we now have in trunk now
(sysext/felogin/ext_localconf.php):

plugin.tx_felogin_pi1 = USER
[loginUser = *] || [globalString = GP:user = /^.+$/, GP:logintype =
logout, GP:tx_felogin_pi1|forgot = 1]
plugin.tx_felogin_pi1 = USER_INT
[global]


Cheers,
Ernesto




More information about the TYPO3-dev mailing list