Title: Multi Instance and Sessions
Last modified: November 10, 2021

---

# Multi Instance and Sessions

 *  [Kelly Ferrone](https://wordpress.org/support/users/kferrone/)
 * (@kferrone)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/multi-instance-and-sessions/)
 * 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 4 years, 6 months ago by [t-p](https://wordpress.org/support/users/t-p/).
      Reason: Moved to Fixing WordPress from Everything else WordPress

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/multi-instance-and-sessions/#post-15059861)
 * 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.

## Tags

 * [kubernetes](https://wordpress.org/support/topic-tag/kubernetes/)
 * [loadbalancer](https://wordpress.org/support/topic-tag/loadbalancer/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/multi-instance-and-sessions/#post-15059861)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
