0

I am working on web based ERP system where I want to track login and logout status of the user and for this I have maintained User Logout form where I am taking all logout related info and saving it to DB and its working properly but if am Closing tab or browser directly without logout its unable to track this info, so that i want to detect browser or tab close event so that I can track and save info automatically or prompt user to logout . i have find some javascript events like onbeforeunload but its calling every time when I am redirecting from one page to another so its not workable for me is there any solution for this ?

Gans
  • 151
  • 3
  • 17
  • Welcome to SO. Please visit the [help] to see what and how to ask. HINT: Post code and effort. That said, please FIRST search google or SO since this is a FAQ – mplungjan Apr 16 '16 at 06:12
  • Also http://stackoverflow.com/search?q=browser+close+asp – mplungjan Apr 16 '16 at 06:18

0 Answers0