Forum Discussion

Erik's avatar
Erik
Icon for Nimbostratus rankNimbostratus
Oct 25, 2017

ACCESS::restrict_irule_events disable

Hi all, I am using this to handle a 404 Error message I got when user enter a new URI when APM-Policy is not finished. To do this I do different variable settings to keep the original URI and then check if the URI starts with /renderer/access_notfound.php3. If so, do a access remove session and redirect to original URI.

 

Here is an example of the code I use:

 

when CLIENT_ACCEPTED {
    ACCESS::restrict_irule_events disable
}

when HTTP_REQUEST {
    if  { ![info exists "init_uri"] } {
         setting init_uri to original uri
        set init_uri [HTTP::uri]
        ACCESS::session data set session.server.init_uri $init_uri
    }
    if { [HTTP::uri] starts_with "/renderer/access_notfound.php3" } {
        if { ( [HTTP::uri] ne [ACCESS::session data get session.server.init_uri] ) and not ( [ACCESS::session data get session.server.init_uri] eq "" ) } {
            ACCESS::session remove
            HTTP::redirect [ACCESS::session data get session.server.init_uri]
            return
        }       
    }     
}

I have some question about this:

 

  1. Have this setting "ACCESS::restrict_irule_events disable" impact on performance?

     

  2. Have you more documentation or examples using this?

     

Regards Erik

 

No RepliesBe the first to reply