So for this example Im going to use some names to help explain…
So I have 2 Pages
- Page Alpha
- Page Beta
The way it works is User 1 signs into the website and opens Page Alpha. When this user does this its changes a yes/no in his user to “IsPageOpen? = yes” then User 2 who signs in on Page Beta sees that a User 1 is signed in.
This is great until its not… If user 1 just closes his browser and never clicks to exit the page it keeps him like this for user 2 to see… Forever… I was wondering what I could to change user 1s “IsPageOpen = no” after so long of inactivity or on page close.