I’m creating an anonymous chat application, so there is no standard account package. Instead, a user is presented with a form on the landing page, and when they enter a tagline and description, they will be taken to the anonymous chat part of the application and their tagline and description will go into a collection.
I want their profile to be removed from the collection if they close their browser or refresh. How do I do this? Is their a way to have a Session variable be true when they are connected, that triggers a function when it goes to false?