I've written in PHP before and when a user connected they get an individual instance of the code which is then closed when the code has finished executing.
In node, I set up my first server to console.log("hi") on every request. When I refreshed I didn't expect the "hi" to be logged again, but it was - I get its being logged twice because of the browser looking for a favicon.
Is this one of the ways in which node behaves differently to languages like PHP?
Does every user connecting to the server share this - what should I call it - instance, at once? If I set
var IP = *users IP* would it be over-written by the next user?
Edit: Is this actually a different instance, but the console doesn't indicate this and prints it straight below? --- I added an "I" counter and incremented it on every request and the logged value for I increased, so it must be the same instance.