class

ActionDispatch::Cookies::UpgradeLegacyEncryptedCookieJar

rails latest stable - Superclass: ActionDispatch::Cookies::EncryptedCookieJar

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

UpgradeLegacyEncryptedCookieJar is used by ActionDispatch::Session::CookieStore instead of EncryptedCookieJar if secrets.secret_token and secrets.secret_key_base are both set. It reads legacy cookies signed with the old dummy key generator and encrypts and re-saves them using the new key generator to provide a smooth upgrade path.

Included modules

  • ActionDispatch::Cookies::VerifyAndUpgradeLegacySignedMessage

Files

  • actionpack/lib/action_dispatch/middleware/cookies.rb