kemal-session icon indicating copy to clipboard operation
kemal-session copied to clipboard

Accessing cookies

Open jwoertink opened this issue 7 years ago • 0 comments

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.

jwoertink avatar Apr 12 '17 16:04 jwoertink