Can the unload Event be Used to Reliably fire ajax Request?

前端 未结 5 914
萌比男神i
萌比男神i 2020-11-27 04:44

I need a method to monitor user edit sessions, and one of the solutions I\'m reviewing will have me using an unload event to send an ajax request to inform the

5条回答
  •  生来不讨喜
    2020-11-27 04:55

    I had a case in which I only needed to notify server side about the unload and didn't care about the response.

    If thats your case you can ignore_user_abort and then you know it'll happen "reliably"

提交回复
热议问题