[Solved] Vb.net web application , where to put code on web browser close event? [closed]


As far as I know, the codebehind on an ASP.Net project (which I assume is what this is) can only execute when it receives some sort of command or event prompting it. A browser closing is not an event as far as the VB.net is concerned; the codebehind won’t even know it’s closed, since the browser is clientside and the VB.NET is serverside. The only thing I can suggest is that you do something like have a timer running that is reset every time a user clicks anywhere or does anything, and that triggers your code when it reaches a certain number (a number it will only reach if the user has been inactive for a certain amount of time).

solved Vb.net web application , where to put code on web browser close event? [closed]