instance method destroyed_since_loaded?

Ruby on Rails 8.0.5.2

Since v8.0.5.2 Private — implementation detail, not part of the public API

Available in: v8.0.5.2 v8.1.4.1 edge

Signature

destroyed_since_loaded?(req, sid)

Writing back a session that another request deleted, such as on logout, would restore it.

Parameters

req req
sid req
Source
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 72
        def destroyed_since_loaded?(req, sid)
          req.get_header(LOADED_SESSION_ID) == sid.private_id &&
            !exist_in_backend?(cache_key(sid.private_id)) &&
            !exist_in_backend?(cache_key(sid.public_id))
        end

Defined in actionpack/lib/action_dispatch/middleware/session/cache_store.rb line 72 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Session::CacheStore

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close