Forum Discussion
João_Assad_4295
Nimbostratus
Mar 22, 2006persistence cookie domain
When using the cookie persistence profile, there is no way to configure the cookie domain. Is there a way to do it via iRules ?
João_Assad_4295
Nimbostratus
Mar 22, 2006my mistake.
this :
when HTTP_RESPONSE {
if { [HTTP::cookie exists "BIGipServermy_pool"] } {
If the cookie does exist, let's grab the contents.
set old_cookie [HTTP::cookie BIGipServermy_pool]
log local0.NOTICE "OLD: $old_cookie"
Now we delete it, then re-insert it with the domain info we want added.
HTTP::cookie remove BIGipServermy_pool
HTTP::cookie insert name BIGipServermy_pool value $old_cookie domain mydomain.com
set new_cookie_domain [HTTP::cookie domain BIGipServermy_pool]
set new_cookie [HTTP::cookie BIGipServermy_pool]
log local0.NOTICE "NEW: $new_cookie"
log local0.NOTICE "NEW: $new_cookie_domain"
}
}
works.
thank you very much.
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