[TYPO3-dev] Best way to check if a fe_user has been logged in the first time

Steffen Kamper info at sk-typo3.de
Mon Dec 8 12:46:44 CET 2008


Hi,

Franz Koch schrieb:
> Hi,
>> I wonder, what's the best way to check if a frontend user is logged in 
>> the first time, if there is any?
>>
>> Any help appreciated.
> 
> isn't there a db-field called "lastlogin" with the timestamp of the last 
> login? If this one is empty, it's most likely that it's the first time ;)
> 

this won't work. If the user loggs in this field will be filled before 
you can check it.

So there is only the way to add a new field to the fe_user "first_login" 
which will be 0. If user logs in you can react on this flag, setup what 
you want and set the flag to 1

vg Steffen




More information about the TYPO3-dev mailing list