• I have the official Docker image for WordPress from Dockerhub installed in kubernetes (EKS). I have it behind a load balancer (ALB). Each pod has two containers, nginx and wordpress. The wordpress containers are using FPM/FCGI with the nginx sidecar. As long as no one logs in, everything works incredibly smooth, like really fast. I’m excited.

    However, once I go to wp-admin page and attempt to login, I will always be immediately redirected to the login page again. Something is up with the sessions. It’s been a long time since I used PHP, as far as I remember the sessions are stored in memory or a file.

    Anyone know where this session file is saved if it is a file?

    Any advice on how multi instance WordPress works with php sessions? I tried using the redis-object-cache plugin but for some reason it still has the same issue? Are there any articles anyone knows of to pull this off?

    Please do not mention multi-site, I am not using it. Multi instance means I horizontally scaled one single WordPress site. When I try and search the web for anything, I can only ever find info on multi-sites which is totally getting in the way of Google being useful. I have even tried filtering out search results and I still get endless results about multi-site.

    • This topic was modified 3 years, 4 months ago by t-p. Reason: Moved to Fixing WordPress from Everything else WordPress
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The different sites should have their own namespace so there should be no overlap. The default login scheme doesn’t use sessions, it’s cookie based.

    How sessions are handled varies by server configuration. Check the php.ini file, the [Session] section.

    You can sometimes get the login screen again even when properly logged in because the redirect_to parameter is erroneous. Try directly requesting /wp-admin/ (the dashboard) after logging in and getting redirected back to login.

Viewing 1 replies (of 1 total)
  • The topic ‘Multi Instance and Sessions’ is closed to new replies.