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

What to do about default Rails session management? #9

Closed
jocubeit opened this issue Jan 28, 2016 · 2 comments
Closed

What to do about default Rails session management? #9

jocubeit opened this issue Jan 28, 2016 · 2 comments

Comments

@jocubeit
Copy link

I notice this gem doesn't act as a drop in replacement, i.e. ActiveRecord Session Store alternative. What do we do with existing Rails session management? For instance, the default Rails project will have:

# config/initialisers/ session_store.rb
Rails.application.config.session_store :cookie_store, key: '_my_app_session'

Would you remove ActionDispatch::Session::CookieStore Rack middleware?

Nice work btw.

@jocubeit
Copy link
Author

I just did some research on ActionDispatch::Session::CookieStore. Apparently it must be set in order for ActionDispatch::Flash to work. So to answer my own question, what to about existing session management: do nothing, leave it in place so the things work as you expect them to in Rails.

@adamcooke
Copy link
Owner

I keep the Rails session storage around (usually a cookie store). As you say, it's useful for things like flash or other minor things you need to pop into a short lived session. Authie doesn't use it however. Authie stores a session ID in a cookie.

@adamcooke adamcooke reopened this Jan 28, 2016
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

2 participants