Skip to content
  • Assain's avatar
    1cda4fb5
    Purpose Metadata For Signed And Encrypted Cookies · 1cda4fb5
    Assain authored
    Purpose metadata prevents cookie values from being
    copy-pasted and ensures that the cookie is used only
    for its originally intended purpose.
    
    The Purpose and Expiry metadata are embedded inside signed/encrypted
    cookies and will not be readable on previous versions of Rails.
    
    We can switch off purpose and expiry metadata embedded in
    signed and encrypted cookies using
    
    	config.action_dispatch.use_cookies_with_metadata = false
    
    if you want your cookies to be readable on older versions of Rails.
    1cda4fb5
    Purpose Metadata For Signed And Encrypted Cookies
    Assain authored
    Purpose metadata prevents cookie values from being
    copy-pasted and ensures that the cookie is used only
    for its originally intended purpose.
    
    The Purpose and Expiry metadata are embedded inside signed/encrypted
    cookies and will not be readable on previous versions of Rails.
    
    We can switch off purpose and expiry metadata embedded in
    signed and encrypted cookies using
    
    	config.action_dispatch.use_cookies_with_metadata = false
    
    if you want your cookies to be readable on older versions of Rails.
Loading