Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

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

#3160

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.

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

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. George Chatzigeorgiou
    George Chatzigeorgiou

    Ok, stupid me. Please delete it, the rack.session is loaded on the first key access.

    September 8th, 2009 @ 09:14 AM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to invalid

    September 8th, 2009 @ 12:10 PM