module Roda::RodaPlugins::Sessions::InstanceMethods

  1. lib/roda/plugins/sessions.rb

Methods

Public Instance

  1. clear_session

Public Instance methods

clear_session()

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.

[show source]
    # File lib/roda/plugins/sessions.rb
218 def clear_session
219   session.clear
220   env.delete(SESSION_CREATED_AT)
221   env.delete(SESSION_UPDATED_AT)
222   nil
223 end