Instead, I would use:
when ACCESS_ACL_ALLOWED {
if { [HTTP::uri] equals "/logout.html" } {
ACCESS::respond 302 Location "https://[HTTP::host]/vdesk/hangup.php3" Connection close
}
}
The purpose of the logout option on the access policy is to display the page from a backend server as a friendly logout page. So, if this page does not exist in your pool member then you probably got the reset message. In this iRule example you code a custom page that simply re-directs to the default product supplied page. I like to use this approach so that applications can be coded with this friendly name and we can easily add/remove logic for logout processing.