Advertisement
krot

ignore_user_abort

Feb 7th, 2022
1,197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. ob_start();
  2. echo '1';
  3. $size = ob_get_length();
  4. ignore_user_abort(true);
  5. set_time_limit(0);
  6. header('Content-Length: '.$size);
  7. header("Connection: close");
  8. ob_end_flush();
  9. ob_flush();
  10. flush();
  11. if (session_id()) {session_write_close();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement