ADMIN login not sticky in our QA site.
Permalink
We have 2 QA boxes fronted by a load balancer. I have a admin user 'admin' with lets say password 'password'. When I login as ADMIN sometimes I see the site EDIT button on top left corner but when I refresh the button vanishes and I am not able to edit even though I am logged in as admin.
Is it because I am hitting different servers ? Should I make the load balancer cookie based or session based to get this working ? This issue is with all users in QA.
However in dev which has only one box everything looks good and works as expected.
Is it because I am hitting different servers ? Should I make the load balancer cookie based or session based to get this working ? This issue is with all users in QA.
However in dev which has only one box everything looks good and works as expected.
Bumpity Bump..
I imagine that your load balancer is configured to move requests between the servers on different requests. I think you can fix this in two ways:
Enable "sticky sessions" on your load balancer so that the moment session is started on one box, the user STAYS on that box (and file-based sessions continue to work.)
OR:
Move your sessions to the database so that whichever server you're on your session will be maintained. This how-to should get your started:
http://www.concrete5.org/documentation/how-tos/developers/handle-se...
Enable "sticky sessions" on your load balancer so that the moment session is started on one box, the user STAYS on that box (and file-based sessions continue to work.)
OR:
Move your sessions to the database so that whichever server you're on your session will be maintained. This how-to should get your started:
http://www.concrete5.org/documentation/how-tos/developers/handle-se...