Forum Discussion

kunalPatel_3157's avatar
May 16, 2017

Secure cookies and Encrypted Cookies

What is the difference between Secure cookies and Encrypted Cookies?

 

1 Reply

  • Hi,

     

    secure cookies are cookie with flag "secure"

     

    secure flag is used to prevent cookie to be sent on HTTP connection from browser if it was sent from server in a HTTPS connection.

     

    Encrypted cookie is to encrypt cookie value. for example, the server encrypt the value with a secret which is known only by itself.

     

    browser is not able to read it but when the cookie is sent back to the server, it is decrypted and handled with it content.