[TYPO3-core] RFC Feature #11313: Add more information to logoff() method in user authentication

Jeff Segars jsegars at alumni.rice.edu
Mon Jun 29 21:24:57 CEST 2009


Oliver Hader wrote:
> Hi,
> 
> Oliver Hader schrieb:
>> This is an SVN patch request.
>>
>> Type: Feature
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=11313
>>
>> Branch: Trunk
>>
>> Problem:
>> The TYPO3 user authentication (t3lib_userAuth) has a method logoff()
>> that is called at several places but has no information what kind of
>> "logoff" happens:
>> * regular logoff, since user requested it (status=logout)
>> * automatic logoff from old session when a new frontend user logs in
>> * automatic logoff if session of logged in frontend user expired or no
>> frontend user is logged in at all
>>
>> Solution:
>> Add new constants that reflect the mentioned events and use them on
>> calling the logoff() method, e.g. "logoff(self::LOGOFF_OnUserLogin)".
> 
> I forgot to define a default value on the argument for the logoff()
> method. This is requried for other applications that still call that
> method without any argument.
> 
> olly
> 

+1 on reading.  Might also be a nice idea to add the event type to the 
devLog entry at the top of logoff().

Thanks,
Jeff


More information about the TYPO3-team-core mailing list