Forum Discussion

mikegray_198028's avatar
Sep 25, 2015

irule

i am looking for an irule to provide the ability to display a dialog box when a user access to legacy application hosted on LTM vip ? The dialog box would tell the user it’s to be migrated at the end of this year, please start using new version, etc….

 

2 Replies

  • Try something like this?

    when HTTP_REQUEST {
    
        if { ![HTTP::cookie exists "warning"]} {
            HTTP::respond 200 content { 
            
                
                    Test
                    
                    
                
                
    
                
             } "Set-Cookie" "warning=1"
        }
    
    }
    
  • Hi Mike!

     

    Glad to help!

     

    Is there any specific reason for why you want to remove it? If you remove the cookie part you won't be able to verify if the user has seen the warning or not.

     

    /Patrik