Forum Discussion
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.
1 Reply
- What_Lies_Bene1
Cirrostratus
There's an exact example of what you need at the bottom of this wiki page: https://devcentral.f5.com/wiki/irules.persist.ashx
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com