instance method
destroyed_since_loaded?
Ruby on Rails 8.1.4.1
Since v8.0.5.2 Private — implementation detail, not part of the public APISignature
destroyed_since_loaded?(req, sid)
Writing back a session that another request deleted, such as on logout, would restore it.
Parameters
-
reqreq -
sidreq
Source
# File actionpack/lib/action_dispatch/middleware/session/cache_store.rb, line 77
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 77
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Session::CacheStore