Logout user on server after closing Tab/Window


#1

Hello,

I want to logout the user when the user close the tab or window. I tried the Meteor.logout() with ‘beforeunload’ on client, but it doesn’t work. Now found the package mizzia:user-status. This package works fine. Now I can locate when the user close the tab or window, but with which function/code can I force the logout of the user, which close the tab or window?

Samid