Skip to content

Instantly share code, notes, and snippets.

@Digiover
Created January 16, 2018 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Digiover/76b9d9ba70ab4296c72104dee3aeebd6 to your computer and use it in GitHub Desktop.
Save Digiover/76b9d9ba70ab4296c72104dee3aeebd6 to your computer and use it in GitHub Desktop.
ASP.NET set httpOnly and RequireSSL cookies
<httpCookies httpOnlyCookies="true" requireSSL="true" />
<!-- With domain: <httpCookies domain="www.saotn.org" httpOnlyCookies="true" requireSSL="true" /> -->
@Digiover
Copy link
Author

put this in the <system.web> node of your web.config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment