class

ActionDispatch::Cookies::UpgradeLegacySignedCookieJar

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

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.

UpgradeLegacySignedCookieJar is used instead of SignedCookieJar if secrets.secret_token and secrets.secret_key_base are both set. It reads legacy cookies signed with the old dummy key generator and signs 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