2

I have browsed through out the internet. I can't find a proper solution for this. Is there a proper way to kill/end session when browser or tab is closed without logging off?

I have tried all the codes in javascript that I found on internet. None of them work.

All my users use IE only. So the code can work for that alone. Any tech is fine with me ie, javascript, jquery, ajax. Is there any solution for this? I know HTTP is stateless, browser event is client side and all that. But someone should have a working code for this. Please help.

user1890098
  • 473
  • 2
  • 10
  • 24

1 Answers1

1

There is no working code for this. The only 100% working way, especially in case of IE – using keep-alive requests and clear session by timeout on user inactivity.

uzer
  • 160
  • 1
  • 3
  • 11