locked
secure the cookies RRS feed

  • Question

  • User-1698479530 posted

    Hi

    im trying to secure my cookies what is the best way i can do it?

    Tuesday, February 3, 2015 3:34 AM

Answers

All replies

  • User-760709272 posted

    What do you mean by "secure"?  You can set them as https only which means they will only be transmitted over https, but obviously your site needs to use https as well.  Failing that you'll just need to encrypt the data that goes in them.

    Tuesday, February 3, 2015 4:23 AM
  • User-1698479530 posted

    i mean like to encrypt them if someone have like google chrome or whatever the browser he have he cannot see the cookie information just like 0101010

    Tuesday, February 3, 2015 4:29 AM
  • User-760709272 posted

    If you google for ".net encrypt text" you'll find lots of articles about how to encrypt and decrypt things

    http://www.codeproject.com/Articles/14150/Encrypt-and-Decrypt-Data-with-C

    just encrypt the value before you set it and decrypt it when you read it.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, February 3, 2015 4:40 AM