Forum Discussion
boneyard
MVP
Nov 05, 2013ACCESS::session remove not working as expected
im trying to invalidate an active APM session by using ACCESS::session remove from the HTTP_REQUEST event. only that specific request is still going through. if i refresh afterwards it fails and redi...
Kevin_Stewart
Employee
Nov 05, 2013Just curious, but what does your iRule look like? The following example should work:
when HTTP_REQUEST {
if { [HTTP::uri] equals "/test" } {
ACCESS::session remove
HTTP::redirect "http://www.example.com"
}
}
You'd necessarily need to issue a redirect if you were removing the session based on request URI, as it'd cause an infinite loop. If you just want to disable the access policy for a particular request, you can use the ACCESS::disable command.
when HTTP_REQUEST {
if { [HTTP::uri] equals "/test" } {
ACCESS::disable
}
}
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