Module: Roda::RodaPlugins::Sessions::InstanceMethods

Defined in:
lib/roda/plugins/sessions.rb

Instance Method Summary collapse

Instance Method Details

#clear_sessionObject

Clear data from the session, and update the request environment so that the session cookie will use a new creation timestamp instead of the previous creation timestamp.



216
217
218
219
220
221
# File 'lib/roda/plugins/sessions.rb', line 216

def clear_session
  session.clear
  env.delete(SESSION_CREATED_AT)
  env.delete(SESSION_UPDATED_AT)
  nil
end