Forum Discussion

Andy_from_Sandy's avatar
Andy_from_Sandy
Icon for Nimbostratus rankNimbostratus
Sep 09, 2016

iRule to control a GUI setting

Is it possible to use an iRule to change the settings that are made in the GUI?

 

I have a SharePoint installation that requires Access Policy ›› Access Profiles : Access Profiles List ›› APM_Kerberos ›› Cookie Options ›› Persitent set. With this I can open, edit and save documents in Word and see it all happens in a single session. Without it I get errors plus I can see Word starting its own sessions.

 

Now I also have an application that uses SharePoint but it doesn't work with the option set. Is it possible to control the setting in an iRule please?

 

5 Replies

  • I believe those persistent options are for ensuring the connection goes to a certain pool member but thank you for looking.

     

    I tried using a cookie persistent profile but that doesn't work as Word then creates a new session when it tries to open a document.

     

  • @ Niels van Sluis - I went back and looked at the iRule I was working from and you are correct on how I can get my config working.

     

    @ Stanislas - I have been working from your thread and I did ask for some extra commentary on what you were doing and also in the access policy also. As I am not doing form based authentication I had removed that code but now I see I need some of it to maintain the session persistence.

     

    I should of done more playing and logging and less asking first! Cheers.

     

    • Stanislas_Piro2's avatar
      Stanislas_Piro2
      Icon for Cumulonimbus rankCumulonimbus

      Cookie are shared between applications on the client side if :

       

      • applications read cookies in the browser's directory
      • Applications trust cookies of browser
      • cookie is written on the disk (session cookies are not stored on disk, cookies with expiration date are, a persistent cookie is a cookie with expiration date)

      to allow IE to share cookies with Office, the sharepoint site must be defined as Trusted site or Intranet site.

       

      Microsoft products trust other MS products cookies. non MS products does not trust MS products cookies.

       

      My irule manages persistent cookies differently than APM persistent cookie, as the persistent cookie has a valid period of 2 minutes, and deny access to same session with a browser if the previous browser window was closed (delete of session cookie, but persistent cookie sent)