php - Do Ajax requests still finish when leaving the page? -


i have situation need run php, need send out soap request , wait response, , that, these requests can slow , take 9 seconds.

now don't want user sitting there waiting 9 seconds complete.

basically user flow is..

  • user comes payment page
  • user clicks button pay via payment gateway (paypal)
  • user returns site (soap request , need finished @ stage)

i thinking of running paypal ipn notification didn't think finished time user got site.

so, i'm wondering if send off call when user hits first page via ajax , have run whilst user submitting payment , time site should done -- it's not big deal if don't end going through payment, i'm not worried running code before confirming payment.

my question is, if fire off run via ajax, code still executed if user leaves page before has finished? if not, ideas?

once request sent server, irrespective of whether navigate away page server side of request completed.

the thing not happen execution of client side callback method.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -