User.logout.before hook trigger?

Hi, does somebody know if the user.logout.before / after hooks is being triggered, if the user is not actively logging out? Just closes the panel window? I mean will the hook be triggered when its session ends?

Thanks for your help.

No, the hook is triggered when the logout method is called. Which is not the case when the session expires.

Thanks, I was almost afraid of this.

Could you explain what you want to achieve, maybe there is another solution.