Re: Re: close the browser

From: Date: Tue, 24 Jun 2014 20:13:29 +0000
Subject: Re: Re: close the browser
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-323544@lists.php.net to get a copy of this message
DELETE FROM php-general WHERE from = 'hadi' OR from = 'almarzuki2011@ hotmail.com' On Tue, Jun 24, 2014 at 2:14 PM, Jim Giner <jim.giner@albanyhandball.com> wrote: > On 6/24/2014 2:53 PM, Tim Streater wrote: > >> On 24 Jun 2014 at 17:43, Stuart Dallas <stuart@3ft9.com> wrote: >> >> I'm yet to hear of a legitimate reason to want some PHP to execute when >>> a user closes the browser, so chances are there's a better way to achieve >>> what he actually wants. >>> >> >> I use that in my app. If the user has been typing into an editing window, >> and >> > then closes the browser window, they will expect that what they typed will > show > up again when they restart the app. I use the onbeforeunload event in the > browser to handle this, along with a (rare) synchronous > ajax request to run a PHP termination script. > >> >> >> >> -- >> Cheers -- Tim >> >> Really - you expect something that was being typed just before closing > to be (magically?) present when you re-open the browser to that page? > > I would never expect something like to occur in any kind of computer > application that (most likely) has procedures to be followed to properly > use that page and save that data before closing it. Failure to follow the > rules and an abrupt closure of the page/browser should not retain whatever > I was doing and I can't fault it. > > Granted - you are doing this for you appls. but the mere fact that you > have done so surprises me. I would never think to provide that service on > my appls. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#323544) next »