Module: ActionDispatch::Session::DestroyableSession

Defined in:
actionpack/lib/action_dispatch/middleware/session/abstract_store.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject


13
14
15
16
17
18
19
20
# File 'actionpack/lib/action_dispatch/middleware/session/abstract_store.rb', line 13

def destroy
  clear
  options = @env[Rack::Session::Abstract::ENV_SESSION_OPTIONS_KEY] if @env
  options ||= {}
  @by.send(:destroy_session, @env, options[:id], options) if @by
  options[:id] = nil
  @loaded = false
end