Wednesday, 4 September 2013

Rails + Sessions: How do I test that my sessions are being stored in the active record store?

Rails + Sessions: How do I test that my sessions are being stored in the
active record store?

Right now I'm having an issue with my sessions (or so I believe). My
original problem can be found here: Rails + HTTPS: Filter chain halted as
:ensure_proper_protocol rendered or redirected . I think the redirect from
HTTPS to HTTP and vice versa is somehow losing my session.
However, I do have this line in my config/initializers/session_store.rb:
mysite::Application.config.session_store :active_record_store
so it's weird that anything gets lost in the process of redirecting. How
would I check that the session variables that I store are actually being
stored in the database and not on the server? Are there any commands I
could run in the console?

No comments:

Post a Comment