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

Accessing cookies #44

Open
jwoertink opened this issue Apr 12, 2017 · 0 comments
Open

Accessing cookies #44

jwoertink opened this issue Apr 12, 2017 · 0 comments

Comments

@jwoertink
Copy link

If I try to access cookies from the response before env.session is called, then my cookies are empty.

puts env.response.cookies.inspect   # no cookies
env.session
puts env.response.cookies.inspect   # lots of cookies

Since this is lazy loaded, I think being able to access cookies from env.session like env.session.cookies["my_cookie"] would be helpful. This would allow it to remain lazy loaded.

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