I am developing a flask Application, now the requirement is to log the time when the user closes a specific flask view (or exits a flask URL). Simple example would be suppose a user is working on '/home' and now closes the browser tab or the browser itself. Then how to record the time for this particular event?
Please help