Handling user session


#1

Im developing a game with user roles.
I need to handle two session with the same account
And handle the logout action to redirect the view.

Any easy suggestion? Im a little lost


#2

There is no official way to do “onLogout”. If you do logout only when clicking on a link. You could hook into that event like Meteor.logout(() => { redirect() });

Give this a read:


#3

Of course, but if…
if the user has two windows with the user log in, and in one window do the logout, I need redirect the two windows.
Thanks for your answer