Uhm, that looks like the description of a simple Web setup. But one in which scriptA
does not invoke scriptB. It's more like:
- Browser connects to server.
- Browser makes a request to server.
- Server calls scriptA.
- scriptA finishes.
- Server send output of scriptA to browser.
- Connection terminates.
- User goes off to buy a latte.
- User comes back, watches some youtube videos.
- User fills in form.
- User hits submit.
- Browser connects to server.
- Browser makes request to server.
- Server calls scriptB.
- scriptB finishes.
- Server sends output of scriptB to browser.
- Connection terminates.
By default, connections used in one script will not be available in another script. But that doesn't mean you cannot use a server framework where connections are shared - but even then, a connection will only be reused if the second request comes quickly enough.