When money transfer occurring then if the browser closes what happen then? I mean when I am processing on server then before commit all changes I want to check the client is still online. If the suddenly closes browser then undone the changes.
My code is like :
function some(){
do_some_stmt;//also keep track what changes has been done
do_some_stmt;//also keep track what changes has been done
...............
if(connection_is_still_alive()){
// final commit
}else{
undo_the_previous_changes();
}
}
So you can answer with php,java I think if its possible then its possible on every programming languages that design for client-server architecture .
Basically I want to know that in a middle of script is it possible to check the browser still online?
Any suggestion is welcome and thanks in advance for make me understand.