After working with Node.js for some months, I was shocked to know recently that the global variables are actually shared between the users!
*Example:* If 1 user sets the value of a global variable to 10, the value will be 10 to other user too. In other programming languages like PHP, separate instances of these variables are created, unlike in Node.js I want to know if variables inside the route are also shared between the users? I guess the *req* object makes it a separate instance for each user. I've not got a proper way to test this, so asking the community. Please let me know if I'm missing something here. *Thanks ..* -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/abf326c1-3039-4b1f-9286-4f32ac62eb35%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
