Asynchronous PHP request (not AJAX)

Posted by Renjith R on Stack Overflow See other posts from Stack Overflow or by Renjith R
Published on 2010-03-09T08:18:51Z Indexed on 2010/03/09 8:21 UTC
Read the original article Hit count: 561

Filed under:
|

Hi I am developing an eshop application. I am using webservice to create Order in Oracle database and websvc will give a response (OrderNumber) and I will inform customer that his Order (OrderNumber) is generated My problem The creation of order is taking too much time in backend system and user is keeping refreshing the page, On each refresh user is coming back to Order create Page, so user is able to click on create Order button again In such cases multiple orders are creating for same orderlines.I can restrict user to create only one order per session in case I got order number in websvc response and I can give ordernumber to customer in next page But real problem come when I didn't get response(Ordernumber) and user is refreshing page. request is already went to Backend system and it will create order and my applicaion will not get response

Is there any method in PHP where we can asyncronously check the status of order if first request is initiated by user and it doesn't matter the furthur page navigation Please help me out.. Thanks in advance

© Stack Overflow or respective owner

Related posts about php

Related posts about asynchronous