Verify And Read A Signed Cookie Value
cookies.signed[:discount] = 45
#=> Set-Cookie: discount=BAhpMg==--2c1c6906c90a3bc4fd54a51ffb41dffa4bf6b5f7; path=/cookies.signed[:discount]
#=> 45cookie_value = 'BAhpMg==--2c1c6906c90a3bc4fd54a51ffb41dffa4bf6b5f7'
cookie_hash = { discount: cookie_value }
cookie_jar = ActionDispatch::Cookies::CookieJar.build(request, cookie_hash)
cookie_jar.signed[:discount]
#=> 45Last updated