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

Add example how to configure Rails cookies store only for sidekiq web #5451

Closed

Conversation

artofhuman
Copy link

This PR adds example how to configure cookies store for sidekiq web if rails in api mode (for rack app we already have an example) It may reduce wasting time to find solution

# example config sidekiq specific session
# https://github.com/mperham/sidekiq/wiki/Monitoring#rails-api-application-session-configuration
Sidekiq::Web.use ActionDispatch::Cookies
Sidekiq::Web.use ActionDispatch::Session::CookieStore, key: "_interslice_session"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is _interslice_session? Where does this code go?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mperham
Copy link
Collaborator

mperham commented Aug 11, 2022

I don't want to add anything more than the link to the rails guide. The instructions might be Rails version-specific.

@mperham mperham closed this Aug 11, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants