This project is archived and is in readonly mode.

#3160 ✓invalid
George Chatzigeorgiou

env['rack.session'] is empty in metal requests when using cookie store

Reported by George Chatzigeorgiou | September 7th, 2009 @ 04:31 PM

Using CookieStore env['rack.session'] should include session data in metal requests but it's an empty hash.

To reproduce set a session var somewhere in a controller and then add a metal object to print env['rack.session'].
It's an empty hash but it should contain the session data.

I've included a rails app that demonstrates the problem.
Just start the server, hit http://localhost:3000/toggle and then http://localhost:3000/test
Watch the output in the console, env['rack.session'] is empty.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages