update set_session to use updated rack API for rails 3.2.x