Forum Discussion
mnb_63148
Nimbostratus
Feb 20, 2014Does F5 automatically delete cookies in the header?
I have an issue where cookies are not always showing in the HTTP header. This is causing session timeouts when users are trying to log into a site and when they are randomly clicking around in a site...
IheartF5_45022
Nacreous
Feb 24, 2014Right - so it's the responses where you are losing cookies? It's gotta be the iRule doing it and 2 is prime suspect but I'm scratching my head to see exactly what is wrong. Add these extra statements in;-
when HTTP_RESPONSE {
set ck [HTTP::header values "Set-Cookie"]
log local0. $ck
log local0.[HTTP::cookie names]
HTTP::header remove "Set-Cookie"
foreach acookie $ck {
log local0. "Cookie $acookie"
HTTP::header insert "Set-Cookie" "${acookie}; HttpOnly"
}
}
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
