PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
trying to work this simple concept out for a while now, just can't locate the php way of telling if the user closed their browser or navigated away, so that when that happens a file that is generated for them at login, will be deleted... is this possible with PHP alone? thanks
Not with PHP alone, no (unless you use sessions and use the exipry of that to delete the file).
JS can probably do something to detect a browser close and fire off a request to the server.