For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

JQB's avatar
JQB
Icon for Nimbostratus rankNimbostratus
Feb 23, 2018

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.

 

2 Replies

  • iRule persist does not allow to chose user defined profile. You can only select persist type and specify all related parameters.