Yar Dmitriev
2008-Oct-01 21:59 UTC
[rspec-users] Story runner has session limit of 4000 bytes, like CookieStore
This could be intentional, but still surprising. Say, we are using ActiveRecord session store, according to the setting in environment.rb: config.action_controller.session_store = :active_record_store When controller writes 5000 bytes to the session: session[:foo] = "a" * 5000 The application works correctly (because there is no 4K limit for the ActiveRecord store), but story runner raises the error: CGI::Session::CookieStore::CookieOverflow I spent an hour trying to understand how it worked there, without success. Ended up writing custom, more efficient marshalling code for one of my classes. Being able to fit sessions into CookieStore is useful by itself, of course.