I am sending an AJAX get() request and I want to be able to abort it. Using the AJAX abort() I can force the client to stop listening to the response. Is there a way to make the server stop executing the php script?
1条回答 默认 最新
douba9020 2013-11-08 11:57关注You can use the function connection_aborted() to detect if the client is still connected and then die(), exit() or whatever if the client has.
解决 无用评论 打赏 举报