Forum Discussion
APM Logout iRule
pseudo code
when ACCESS_ACL_ALLOWED
if URI is "/index.php?module=Users&action=Logout" OR "/?cmd=logout'
then
ACCESS::SESSION remove
Redirect 302 to /my.policy
end pseudo code
Our iRules documentation can be found on https://devcentral.f5.com/wiki/iRules.APM.ashx and you can post any questions on the discussion boards there. They are usually answered pretty quickly. Alternatively, you can have an iRule written for you by our experts:
http://www.f5.com/services/professi...emand.html
As this seems to be a bug, I do not want pay for a work around using the irules on demand service.
I have tried many different variants of this, but I cannot seem to get it working.
when ACCESS_ACL_ALLOWED {
if { [HTTP::uri] equals "/?cmd=logout" } {
ACCESS::SESSION remove
HTTP::redirect "https://[HTTP::host]"
}
}
The errors I am seeing make it seem like ACCESS:SESSION does not even work with ACCESS_ACL_ALLOWED.
Could anyone offer any guidance on how to get this working?
Thank you
- hoolioCirrostratusHi Ian,
when ACCESS_ACL_ALLOWED { if { [HTTP::uri] equals "/?cmd=logout" } { ACCESS::session remove HTTP::redirect "https://[HTTP::host]" } }
- Ian_38374NimbostratusThanks Aaron, this worked. Was it just my spacing?
- hoolioCirrostratusIt was the capitalization of ACCESS::session (instead of ACCESS::SESSION). iRule commands have the namespace capitalized and the command in lowercase.
Recent Discussions
Related Content
* 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