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.

Setting session and cookie variables in same request breaks session in following request in Rails 2.3.9

#5669

Think this might be related to #4743 Session Cookie breaks if used with custom cookie in rails 2.3.8

The problem is the same in that a newline is appended to the _session_id key and is thus causing the next request to create a new session.

Weirdly though I have not been able to replicate in a real application, but, only as part of IntegrationTest.

Reported by omarqureshi · September 20th, 2010 @ 12:20 PM

State: committed
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. omarqureshi
    omarqureshi

    Actually I lied, I did end up suffering from this in a real application just today.

    September 21st, 2010 @ 07:46 PM

  2. omarqureshi
  3. omarqureshi
    omarqureshi
    • Tag changed from rails 2.3.9, active_record_store, cookies, sessions to rails 2.3.9, active_record_store, cookies, patch, sessions

    September 27th, 2010 @ 09:25 AM

  4. omarqureshi
  5. sds
    sds
    • Tag changed from rails 2.3.9, active_record_store, cookies, patch, sessions to rails 2.3.10, rails 2.3.9, active_record_store, cookies, patch, sessions

    +1 for this fix. The issue still exists in 2.3.10.

    And not just for Active Record session store.

    October 21st, 2010 @ 12:57 PM

  6. Aaron Patterson
    Aaron Patterson
    • State changed from new to committed
    • Importance changed from to Low

    I've applied this to the 2-3-stable branch. Thanks!

    October 21st, 2010 @ 06:31 PM

  7. omarqureshi