Welcome! Log In Create A New Profile

Advanced

Re: Proxying to node.js + express.js, session doesn't persist

July 21, 2011 08:03PM
> All of the requests you've provided have identical
> connect.sid as
> far as I see.
>

Yeah, maybe the session lasted that long. I kept clicking and I saw cookie change every few seconds, though.


> This may be a problem if e.g. your backend is
> multi-process, while
> session store is local to process. With HTTP/1.1
> and keepalive
> you'll be most likely talking to one process over
> established
> connection (and everything seems to work ok),
> while though nginx
> there will be new connection to your backend for
> each request and
> you'll be talking to many backend processes (and
> you'll see
> "flacky" sessions as described). This is a
> typical example of
> "something wrong with session storage on backend
> side" as
> mentioned in previous message.

My backend is, in fact, multi-process - I use Cluster (https://github.com/LearnBoost/cluster), which spawns 4 workers, one per CPU core. I'm discussing this with Express/Cluster developer and he just mentioned the same thing. If that's the case - how would I fix that, then?
Subject Author Posted

Proxying to node.js + express.js, session doesn't persist

ilya July 21, 2011 06:45AM

Re: Proxying to node.js + express.js, session doesn't persist

Maxim Dounin July 21, 2011 07:54AM

Re: Proxying to node.js + express.js, session doesn't persist

ilya July 21, 2011 11:18AM

Re: Proxying to node.js + express.js, session doesn't persist

Maxim Dounin July 21, 2011 11:36AM

Re: Proxying to node.js + express.js, session doesn't persist

ilya July 21, 2011 11:45AM

Re: Proxying to node.js + express.js, session doesn't persist

Maxim Dounin July 21, 2011 12:14PM

Re: Proxying to node.js + express.js, session doesn't persist

ilya July 21, 2011 12:28PM

Re: Proxying to node.js + express.js, session doesn't persist

Maxim Dounin July 21, 2011 04:54PM

Re: Proxying to node.js + express.js, session doesn't persist

ilya July 21, 2011 08:03PM

Re: Proxying to node.js + express.js, session doesn't persist

jzabel May 10, 2012 12:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready