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.
Similar Posts:
- WGet download Oracle JDK
- What happened to CodeIgniter disallowed key characters?
- [Solved] Composer Error: Composer\Downloader\TransportException
- [Solved] vue-elemnt-admin npm run dev Run Error
- [Solved] VS error C4996: ‘scanf’: This function or variable may be unsafe.
- [Solved] Unapp H5 Error: Access to XMLHttpRequest at ‘http://www.localtest.com/api/api/v1/job/getPositionList’…
- [Solved] Eclipse GIT Plugin Error: Writing to secure store failed
- [Solved] cookie loss when uploading components using the elementui framework El upload
- Configure Struts2 web.xml to report an error [How to Solve]
- [PHP Error]Only variables should be passed by reference