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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -