Hi Luis, Thanks for your insight. But it shouldn't be the case. I test this in our staging environment, which only referred by IP, not by any-name. And the scenario also failed for ext:database During 'tracing' I found that pyramid's request.unauthenticated_userid and/or request.authenticated_userid may/may not return expected 'stored' value...
Regards, Desson On Wednesday, January 6, 2016 at 7:41:58 PM UTC+8, Luis Aguirre wrote: > > Hi Desson, > > Once this happend to me, problem was cookies, for them, www.domain.com is > not equal to domain.com. So when I went to login page were in > www.domain.com, but then redirects to domain.com. Please check if domain > name is always the same. > > Best regards, > > Luis > > 2015-12-30 0:12 GMT-03:00 Desson Ariawan <[email protected] <javascript:>> > : > >> Hi all, >> Greetings! This is my 1st post, so please be 'patient' :) >> >> I have a pyramid application, and run perfectly in Gunicorn - Nginx >> environment with single worker. >> Just recently, I tempted to maximize my machine usage by increasing >> worker process to 3: >> >> gunicorn -w3 --bind 0.0.0.0:5000 --paste my-app.ini -k >> meinheld.gmeinheld.MeinheldWorker >> >> and the problem started: >> Sessions is not 'replicated' between workers, even if I'm using database: >> >> session.type=ext:database >> session.secret=something_secret >> session.cookie_expires=true >> session.key=always_a_key >> session.url=mydb_url >> session.timeout=3000 >> >> Yes, I'm using pyramid_beaker for session and cache, I even tried with >> cookie - same issue... >> So if one user loginned, and the page refresh 'sometimes' it's not >> treated as authenticated, but another refresh this user is authenticated >> >> Which part I missed? Anyway I'm using Python 3.4.x in CentOS 7 machine >> >> Thank you and best regards, >> Desson >> >> -- >> You received this message because you are subscribed to the Google Groups >> "pylons-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at https://groups.google.com/group/pylons-discuss. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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]. Visit this group at https://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
