Skip to content Skip to sidebar Skip to footer

Difference Between Secure And Insecure Cookies

I am developing an Android application where I have to maintain session. There are two websites that I need to log into. For one website, when I get cookies from Cookie Store I ge

Solution 1:

A secure cookie instructs the browser that the cookie may only be sent to the server when connecting through SSL.

These are sites where the URL starts with https:// (note the s after http)

An insecure cookie will be sent to both http:// and https:// connections.

This mechanism ensures that session cookies (if set as secure) will always be encrypted in order to prevent eavesdropping.

Post a Comment for "Difference Between Secure And Insecure Cookies"