Here are the changes to enable this feature on top mix phx.gen.auth: Set the live_socket_id on login and disconnect on logout · dashbitco/mix_phx_gen_auth_demo@1eebcae · GitHub
It is really straight-forward and it is per session (i.e. it doesn’t disconnect all sessions, only the current one).






















