class RodaSessionMiddleware
def call(env)
application, and if the session has been loaded after the result has been
Initialize the session hash in the environment before calling the next
def call(env) session = env['rack.session'] = SessionHash.new(@req_class.new(nil, env)) res = @app.call(env) if session.loaded? session.req.persist_session(res[1], session.data) end res end