[TYPO3-english] logoff function in class.t3lib_userauth.php
pero at matic.com
Sat Dec 26 12:16:35 CET 2009
Bernhard Kraft wrote:
> Pero Matic schrieb:
>> Hi. Does anybody know why logoff function from
>> class.t3lib_userauth.php is called on every page. Shouldn't this
>> only be called when FE user wants to logout? Thx!
> It only gets called if you are not logged in while browsing the FE or
> if your session has timed out. This is to just make sure any
> eventually set login sessions will get deleted if you have logged out.
> If you do want to take any action on "real" logoff's in one of the
> logoff method hooks, you could simply check if the GET variable
> "logintype=logoff" is set. If this is the case it is a logout
> requested by the browsing user.
This is what i tried to do! I made some auth. ext. and now i had to make
logoff. By looking some other auth. ext. i concluded that it should be
enough to form a link with GET parameter logintype set to logoff (hm, maybe
i set it to logout, i have to check) and by clicking on the link FE user
would log out. But that didn't work - session was not destroyed, so i was
wandering if i have to do something more, maybe call logoff method manually
or something. So it should be enough to set logintype GET paramtere to
logoff/logout to destroy FE user session? THX!
More information about the TYPO3-english