Forum Discussion

crocketv_18020's avatar
crocketv_18020
Icon for Nimbostratus rankNimbostratus
Oct 16, 2012

Check Condition to define custom Session Peristance profile

Hello - have a question regarding session persistance association based on URL string condition

 

I have a VS that is configured to work on ALL Service Ports (* / dynamic). The client would like to add the following custom characteristics to session persistance. Need to add an iRule that can apply certain session persistance under the following conditions specified in the user URL string

 

- if the users specifies the work "powershell" in the browser (eg https://dc1xyz.company.com/powershell) then specific custom cookie insert persistance profile will be used (eg dc1xyz.company.com_cookie)

 

- if user specifies anything else, which does not contain "powershell", (eg https://dc1xyz.company.com) then session will use a specific custom source address persistance profile (eg dc1xyz.company.com_src_addr)

 

I would like if possible to have the source address profile associated with the VIP by default and an iRule to change that to cookie if the user specifies "powershell" in the URL string but I am not sure if I can do that. When I tried adding my own iRule to the VIP in that way in complained that the associated persistence profile needed to be cookie based.

 

This is not necessary and I am willing to test any setup which will achive the basic functionallity you suggest trying.

 

Thanks for you help.