The ignore_user_abort( ) function sets whether a client disconnect should abort a script execution. In what scenario would you, as a web developer, use this function?

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest
  • You would use it to stop a user from clicking the back button if they decide not to view as a result of a click. //Maybe
  • You would use this function if you have some important processing to do and you do not want to stop it, even if your users click Cancel.
  • You would use this function if you wanted to abort the script for all logged-in users, not just the one who disconnected.
  • You would use this function if you want a PHP script to run forever.
0/5 (0 Reviews)

Like this article?

Share on facebook
Share on twitter
Share on linkedin
Share on pinterest

Related Posts