(Also tried to put this call into body tag: )
CustomLogoff is not being called. Thought when calling it like this:
It works fine (on button click of course).
Is there a way to make it work on browser closing too?