[horde] horde_hook_postauthenticate called after logout
Michael Menge
michael.menge at zdv.uni-tuebingen.de
Fri Jun 13 08:54:12 UTC 2008
Quoting Jan Schneider <jan at horde.org>:
> Zitat von "Michael Menge" <michael.menge at zdv.uni-tuebingen.de>:
>
>> Quoting Chuck Hagenbuch <chuck at horde.org>:
>>
>>> Quoting "Michael Menge" <michael.menge at zdv.uni-tuebingen.de>:
>>>
>>>> i don't know if its a bug or a feature but horde_hook_postauthenticate
>>>> is called on logout. Is there a way to fiugre out if the function is
>>>> called on login or logout ? We use Horde 3.2
>>>
>>> I'm not seeing how this can happen; if it is happening it's definitely
>>> a bug. You can log the output of print_r(debug_backtrace(true))
>>> (warning, it'll be pretty big) to see the call chain of how it's
>>> getting there.
>>>
>>
>> Is there a way to redirect the output of print_r to a file?
>> I see only one output in the sidebar, but the logs show the hook is
>> called multiple times (2 times on login and some extra calls during
>> normal using of Horde).
>
> Horde::logMessage(print_r(), __FILE__, __LINE__)
>
That was my first idea, but print_r() returns 1 ;-)
I found print_r() has a optional second parameter that i had to set to true.
print_r(debug_backtrace(true),true)
Thanks
--------------------------------------------------------------------------------
M.Menge Tel.: (49) 7071/29-70316
Universitaet Tuebingen Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung mail:
michael.menge at zdv.uni-tuebingen.de
Waechterstrasse 76
72074 Tuebingen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5339 bytes
Desc: S/MIME krytographische Unterschrift
Url : http://lists.horde.org/archives/horde/attachments/20080613/37269468/attachment-0001.bin
More information about the horde
mailing list