Forum Discussion
DaveC_53879
Dec 15, 2011Nimbostratus
Mark cookie as secure
We have 2 virtual servers for an IIS site, one for http and the other for https, but they use the same pool on port 80. Is there a way to mark all of session cookies leaving the https VS as secure since the web server has no way of knowing? We do not enforce SSL. I'm sure this has beeen done before. I called support which pointed me back here. Thanks
- Michael_YatesNimbostratusHi DaveC,
when HTTP_RESPONSE { set cookies [HTTP::cookie names] Loop through each cookie by name in request foreach aCookie $cookies { Replace cookie name from list and set Secure Flag to Enable HTTP::cookie secure $aCookie enable } }
- DaveC_53879NimbostratusHi Michael,
- Michael_YatesNimbostratusYou will have to take a look at the entire session in a tool like Fiddler2 to see it.
when HTTP_RESPONSE { set cookies [HTTP::cookie names] Loop through each cookie by name in request foreach aCookie $cookies { log local0. "Cookie Name: $aCookie being secured." Replace cookie name from list and set Secure Flag to Enable HTTP::cookie secure $aCookie enable } }
- DaveC_53879NimbostratusHey Michael,
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects