Forum Discussion
Sumit_sam_14525
Nimbostratus
May 30, 2014How to set HTTPOnly in cookie when HTTP::response & make the session persist on that cookie
I need to insert secure cookie in HTTP:response and then make session persist on that cookie.
Any Ideas !!
Sumit_sam_14525
Nimbostratus
Jun 05, 2014For everyone's reference, I've fixed the issue with following irule.
when HTTP_RESPONSE { HTTP::cookie secure "JSESSIONID" enable set ck [HTTP::header values "Set-Cookie"] HTTP::header remove "Set-Cookie" foreach acookie $ck { if {$acookie starts_with "JSESSIONID"} { HTTP::header insert "Set-Cookie" "${acookie}; HttpOnly" } else { HTTP::header insert "Set-Cookie" "${acookie}; HttpOnly" } } }
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