Forum Moderators: coopster & phranque

Message Too Old, No Replies

How to let the perl cgi script continue when visitor press "stop"?

         

johnlim

3:14 am on Jun 14, 2004 (gmt 0)

10+ Year Member



I have a perl cgi named "order.cgi" which the collect the customer's information and process the order. This cgi will update the database and send confirmation email to the customer.

What I want to do is: After the customer press "Confirm Order", the order.cgi will run and complete the order and send confirmation email even if the customer press stop or close the browser.

Could anybody help me what to do?

Thanks a lot.

johnlim

5:50 am on Jun 14, 2004 (gmt 0)

10+ Year Member



Sorry, I know the answer now...

The script will continue to run no matter the browser stop button is pressed or the browser is closed.

moltar

7:00 am on Jun 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some hosting companies may kill long running scripts automatically. Better talk to them first if you plan to run the script for a long time.