Forum Discussion
mraful_64014
Nimbostratus
Jun 24, 2013persitence when there are multiple cookies
The application needs persistence but sets multiple cookies. Do I need an iRule to choose one cookie to persist on or will a persistence profile figure it out? I want to use the hash method.
thanks,
Mitch
1 Reply
- Kevin_Stewart
Employee
There are a few options:
1. Use native, generic (HTTP Cookie Insert) cookie persistence - as in the parent cookie profile. The BIG-IP will generate its own cookie for persistence. This is usually the EASIEST and MOST ROBUST method.
2. Use a cookie persistence profile with Cookie Hash as the method. This will trigger persistence based on the specified cookie name. With this method (and any method other than Insert) you must ensure that the cookie the server is generating is 1) created very early in the communication, and 2) does NOT change.
3. Write an iRule to capture and use an attribute of the HTTP payload and apply that to a Universal Persistence profile. The attribute could be a cookie or anything else that exists reliably in the request. Here's a good place to start: https://devcentral.f5.com/wiki/iRules.Weblogic_JSessionID_Persistence.ashx.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects