Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with shm server storage #187

Open
ravirajshankarl opened this issue Mar 19, 2025 · 0 comments
Open

Issue with shm server storage #187

ravirajshankarl opened this issue Mar 19, 2025 · 0 comments

Comments

@ravirajshankarl
Copy link

ravirajshankarl commented Mar 19, 2025

I used SHM but my Session Cookie is trusted without login on a separate APISIX dataplane pod without login

I'm using lua-resty-session with shm (shared memory) storage for session management in APISIX. However, I have multiple APISIX instances running, and every time a request is routed to a different instance, a new session is created instead of maintaining the same session

nginx Configuration:

http_configuration_snippet: |
    proxy_buffering off;
    lua_shared_dict sessions 10m;
  http_server_configuration_snippet: |
    set $session_name "apisix_session";
    set $session_storage shm;
    set $session_shm_uselocking off;

Expected Behavior:
The session should be shared across all instances, so a user stays logged in even when their request is routed to a different APISIX pod.

@ravirajshankarl ravirajshankarl changed the title Issue with shmserver storage Issue with shm server storage Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant