Well, that's what global variable means, shared among all functions in the process. Since there's only one process to handle all requests, they can access the global variables.
All languages used in web server that don't spawn a new process for each request have the same feature.
All languages used in web server that don't spawn a new process for each request have the same feature.