Is the session hash available to tests or the rails console?

My guess is that the answer is no because the session hash is
available only if you’re storing a cookie, and you can’t store a
cookie if you’re using the rails console or using the built-in testing
functionality. Can someone confirm that this is correct?

In tests:
Assuming you have this in your setup method: @request =
You can access the session hash via

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs