module Roda::RodaPlugins::Sessions::InstanceMethods

def _roda_after_50__sessions(res)

the response.
update the rack response headers to set the session cookie in
If session information has been set in the request environment,
def _roda_after_50__sessions(res)
  if res && (session = env['rack.session'])
    @_request.persist_session(res[1], session)
  end
end

def clear_session

instead of the previous creation timestamp.
so that the session cookie will use a new creation timestamp
Clear data from the session, and update the request environment
def clear_session
  session.clear
  env.delete(SESSION_CREATED_AT)
  env.delete(SESSION_UPDATED_AT)
  nil
end