Forum Discussion

Martin_Vlasko's avatar
Martin_Vlasko
Icon for Altocumulus rankAltocumulus
Apr 13, 2017

APM session variables in Advanced Customisation PHP files

Hi,

 

Do you know, is it somehow possible to work with APM session variables in APM Advanced Customisation's PHP files and vice versa?

 

Let's say:

 

  • There are 3 different virtual servers - each VS uses different VIP with different URL (customerX.company.com)

     

  • There is just 1 single APM policy used by all 3 VS

     

Now I would like to customise the logon page for each customer via Advanced Customisation (the basic customisation within VPE policy is not enough in this case).

 

Let's say I am updating the header.inc file in Advanced Customisation and would like to do some simple if/else statement based on URL (if URL contains customer1 do this, if URL contains customer2 do that, etc.).

 

What set of variables is available for Advanced Customisation files? Is the URL also stored in some of the $GLOBALS[] variables? Can I get the content of Session Variables inside header.inc?

 

Thanks for any tips/tricks :-)

 

No RepliesBe the first to reply