javascript - Is node.js express-session stateless or stateful? -
i working express-session , have question : node.js, or more particulary express-session sateless or stateful ?
in fact, when need use session node, use req.session.foo, means we use request session.
so, there stored on server (sateful) ? in case, why cant access value "global variable" in php ?
in other case, means have stateless server, , sessionid value correspond token key ?
can me understanding middleware bit more ?
thanks advance
is there stored on server
yes, how sessions work
why cant access value "global variable" in php
because global in node based http server global the server , not the request. you'd have sessions overwriting each other.
Comments
Post a Comment