module Roda::RodaPlugins::Sessions::InstanceMethods
def _roda_after_50__sessions(res)
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
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