Re: Can a script run twice?

From: Date: Wed, 24 May 2006 08:37:58 +0000
Subject: Re: Can a script run twice?
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-236811@lists.php.net to get a copy of this message
Robert Cummings wrote:
I've put in a trap for the double click ( and yes it *IS* browser dependent ) and that works fine, but we will have to see if it makes any difference to the original 'race' problem :(
Good luck :)
Actually the main problem was I was not updating the _SESSION variable soon enough, so the second 'click' was still seeing the original value. Now I set it with a dummy value (-1) until I can get the real value, which requires a pass through the database, and the original logic seems to be working fine - second string gets kicked out like it should. -- Lester Caine - G8HFL ----------------------------- L.S.Caine Electronic Services - http://home.lsces.co.uk Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php

« previous php.general (#236811) next »