method

destroy

rails latest stable - Class: ActionDispatch::Session::DestroyableSession

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

destroy()
public

No documentation available.

# 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