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.



199
200
201
202
203
204
# File 'lib/roda/plugins/sessions.rb', line 199

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