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

Susanne Moog typo3 at susannemoog.de
Sun Jun 14 11:52:54 CEST 2009


Hi Olly,

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)".

+1 by reading and testing. I only tested if the new constant(s) are
available in the logoff_post_processing hook, that works like a charm :-)

Cheers!

Susanne

-- 
Susanne Moog
NEUSTA GmbH - www.neusta.de


More information about the TYPO3-team-core mailing list