[TYPO3-dev] Tangled-up user authentication
Christopher Lörken
christopher at loerken.net
Tue Apr 21 15:51:09 CEST 2009
Marcus Krause schrieb:
> Christopher Lörken schrieb am 04/20/2009 11:38 AM Uhr:
>> Krystian Szymukowicz schrieb:
>>> Christopher Lörken wrote:
>>>> So in total there are 7 DB calls for not logged in users with every
>>>> page hit
>>> I am not familiar with this aspect of TYPO3 so I would ask you because
>>> as I see you've spent some time digging into this matter. So the
>>> question is:
>>> is those 7 DB calls started with every page hit even if I have no
>>> fe_user at all?
>>>
>>> Thanks if you could clarify this.
>> as far as I see it: yes. The system wouldn't know that you do not have
>> any fe_users and FE user authentication is directly called from index_ts
>> and tslib_fe respectively. I don't see any conditionals which would
>> avoid those calls.
>
>
> Simply do not create FE user sessions!
> $TYPO3_CONF_VARS['FE']['dontSetCookie'] = 1
Hi Marcus,
I'm afraid this will not help.
Setting dontSetCookie does exactly what it says: It doesn't set cookies.
This has, however, no effect on any DB calls.
As I said: A guest user always results in 2 calls to fe_sessions, 1 on
fe_session_data and 2 on fe_sessions joined with fe_users... I don't see
any conditionals which would avoid those calls.
Regards,
Christopher
More information about the TYPO3-dev
mailing list