Forum Discussion
Ali_Khan
Nimbostratus
Apr 11, 2018Insert 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
Nacreous
Apr 12, 2018Hi
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.
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
