JQB
Feb 23, 2018Nimbostratus
Only Apply Default Persistence Profile (HTTP Cookie Insert) to specific URI paths
Currently, we are using a Default Persistence Profile (HTTP Cookie Insert) on our Virtual Server. However, we only need persistence for a few paths on the site;
https://login.website.com/path1/*
https://login.website.com/path2/*
https://login.website.com/path3/*
Is it possible, using an iRule perhaps (?), to only apply a pre-defined persistency profile for specific paths, and not the entire Virtual Server?
Key point: I do NOT want to set/define the persistency options inline in the iRule. I would like to essentially reference a defined Persistency Profile ("Website-Cookie-Profile") from within the iRule.
Cookie Method: HTTP Cookie Insert
Cookie Name: ThisIsMyCookie
Always Send Cookie: (not selected)
Expiration: Session Cookie (selected)
Cookie Encryption Use Policy: preferred
Encryption Passphrase**: (masked)
Thanks in advance. Any example iRules would be greatly appreciated.