> 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 lby ilya - Nginx Mailing List - English
> Are you see sessions not being flacky while working directly with > your backend? Correct. I've tested backend standalone and this doesn't happen. Notice, that in requests above connect.sid is changing every request. That is not supposed to happen - with standalone backend connect.sid value is constant across requests and changes either when user re-logins or it expires. Can it be bby ilya - Nginx Mailing List - English
Well, not really, since this happens _only_ when nginx is used. I and other people use Express sessions and they work, but in my case nginx somehow breaks them. The fact that session becomes flaky with introduction of nginx doesn't mean Express is broken, it means that nginx introduces some change that affects session. On the backend, sessions stored in Redis. Looking at my config - does nginby ilya - Nginx Mailing List - English
Here's what I see in the browser ---------Logging in------------- Request Headers Host 173.203.105.235 User-Agent Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0 Accept */* Accept-Language en-us,en;q=0.5 Accept-Encoding gzip, deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Connection keep-alive Content-Type application/json; charset=UTF-8 X-Requested-With XMLHttpby ilya - Nginx Mailing List - English
I have Nginx set up to proxy_pass requests to location /api to 127.0.0.1:3000, where Node.js is listening. Node.js is running a server written with Express.js. In my previous project, I used request session in Express to track users. In that project, I didn't use Nginx. In the current project, I can't use session because it simply doesn't save. I can write and read cookies, but not the requestby ilya - Nginx Mailing List - English