Forum Discussion

Julio_Navarro's avatar
Julio_Navarro
Icon for Cirrostratus rankCirrostratus
Nov 19, 2015

APM redirect for the session

Hello!

I am trying to make a redirect if the session is missing or lost when the client get the following message:

BIG-IP can not find session information in the request. This can happen because your browser restarted after an         add-on was installed. If this occurred, click the link below to continue. This can also happen because cookies are disabled in your browser. If so, enable cookies in your browser and start a new session.

To open a new session, please click here.

I would like to be automatically redirect "please click here" link without human intervention.

Any suggestions?

Thank you

J

3 Replies

  • What you need to do in you HTTP::response is to make your content HTML and use a META refresh in the

    . This may need some tweaking in your testing, but should give you a basic frame work. The 5 in the META tag means it will redirect after 5 seconds.

    when RULE_INIT {
        set responseContent {
                
                    Redirect Title
                    
                
                
                    
                        BIG-IP can not find session information in the request. This can happen because your browser restarted after an add-on was installed. If this occurred, click the link below to continue. This can also happen because cookies are disabled in your browser. If so, enable cookies in your browser and start a new session.
                        To open a new session, please clieck here.
                    
                
            }
    }
    
    when HTTP_REQUEST {
        if {some logic}{
            HTTP::respond 200 content $responseContent noserver
        }
    }
    
  • F5 provided the answer here

    when CLIENT_ACCEPTED {
        ACCESS::restrict_irule_events disable
    }
    
    when HTTP_REQUEST {
      if { [HTTP::uri] ends_with "/my.logout.php3?errorcode=19" }{ 
         HTTP::redirect "/"
       }
    }
    
  • did you get this answered?? We have this issue.. but we are trying to figure out why APM is issuing the message to begin with.. we don't need to have it 'automatically click', from what we see, it is going there on an initial request and it shouldn't be going there. (BUG IMHO).