Forum Discussion
DaveC_53879
Nimbostratus
May 06, 2011cookie persistence sendfor: http only
Need help with cookie persistence. LTM version 9.4.6. How do I set the F5 cookie to http only?
DaveC_53879
Nimbostratus
May 12, 2011Thanks for getting back to me. There is no change. It looks like your script needs to read the string BIGipServerAA_sessiontest_pool, with AA_sessiontest_pool as my pool for testing, but can't since it's encrypted. If I unencrypt the cookie your iRule works as expected. I tried replacing the actual name of my cookie in your script, but that didn't help.
when SERVER_CONNECTED {}
when HTTP_RESPONSE { Check if the response contains the persistence cookie if
{[HTTP::cookie cookie_sessiontest$] ne ""}{
Replace the last Set-Cookie header value with the same value and ; HttpOnly appended HTTP::header replace Set-Cookie "[HTTP::header Set-Cookie]; Http Only" } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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