After the user has logged in (ENV['warden'].authenticate!
'd) once, how does warden
know this? I can not find anything in the cookie except for the rack.session
value - I couldn't figure this out from the documentation or code.
How does warden get the current user from the rack session?
© 2022 - 2024 — McMap. All rights reserved.
env['rack.session']
contains the session for this specific user, and contains awarden.user.key
or something... – BirdellaPool
, which stores data in aHash
: github.com/rack/rack/blob/master/lib/rack/session/pool.rb#L33 – Birdella