Forum Discussion
Igor430
Feb 09, 2022Altostratus
Assign cookie value to APM custom variable
Hey all, Looking for help to create an irule that would check for the XSRF-TOKEN cookie in the HTTP request and if it exists, assign the cookie value to a custom APM variable (for example, session.c...
- Feb 10, 2022
I believe that something like this should work:
when ACCESS_ACL_ALLOWED {
if { [HTTP::cookie exists "XSRF-TOKEN"] } {
ACCESS::session data set session.custom.xsrftoken [HTTP::cookie value XSRF-TOKEN]
}}
Pedro_Roure
Feb 10, 2022Cirrus
I believe that something like this should work:
when ACCESS_ACL_ALLOWED {
if { [HTTP::cookie exists "XSRF-TOKEN"] } {
ACCESS::session data set session.custom.xsrftoken [HTTP::cookie value XSRF-TOKEN]
}
}
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