Forum Discussion
Ali_Khan
Apr 11, 2018Nimbostratus
Insert custom Cookie on response with APM portal access resource
Hi All,
I have a situation where we need to insert a custom cookie (any name,value) for client browser to store. Need to set this cookie for a web application published using APM portal access r...
iaine
Apr 12, 2018Nacreous
Hi
Try this
when REWRITE_REQUEST_DONE {
Need something to signify that the right portal object is being called
if {[HTTP::host] equals "www.example.com" } {
set match 1
}
}
when HTTP_RESPONSE_RELEASE {
if { [info exists match] } {
HTTP::cookie insert name MyCookie value "One; Secure;"
}
}
This code would need to be associated to the VIP hosting the APM profile that hosts the WebTop.
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