To add the ; secure suffix to the Set-Cookie http header I simply used the <httpCookies>element in the web.config:

<system.web>
  <httpCookies httpOnlyCookies="true" requireSSL="true" />
<system.web>

IMHO much more handy than writing code as in the article of Anubhav Goyal.

See: http://msdn.microsoft.com/en-us/library/ms228262(v=vs.100).aspx

相关文章:

  • 2022-12-23
  • 2021-09-27
  • 2021-08-20
  • 2021-06-26
  • 2022-12-23
  • 2021-09-29
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2021-08-28
  • 2021-08-17
相关资源
相似解决方案