Flowdock
method

destroy_session

Importance_0
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: ActionDispatch::Session::CookieStore

Method deprecated or moved

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

destroy_session(env, session_id, options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/middleware/session/cookie_store.rb, line 64
      def destroy_session(env, session_id, options)
        new_sid = generate_sid unless options[:drop]
        # Reset hash and Assign the new session id
        env["action_dispatch.request.unsigned_session_cookie"] = new_sid ? { "session_id" => new_sid } : {}
        new_sid
      end
Register or log in to add new notes.