Forum Discussion
Chris_13067
Nimbostratus
Oct 29, 2008persistence based on text in payload
Hi,
I have an app that initiates a TCP connection to a server, which performs a login function, and returns a text string to be used as a session ID. The initial connection is then closed. I need subsequent reqests referencing the session ID to persist to the same server. The session ID always appears at a certain offset and is 32 bytes long.
I don't have much experience with iRules and haven't gotten this working so far. Any help to point me in the right direction, or similar examples would be greatly appreciated.
Thanks
- Nat_Thirasuttakorn
Employee
I think the concept is same as jsessionid persistent. - Chris_13067
Nimbostratus
Thanks, - hoolio
Cirrostratus
You shouldn't need to use a persistence profile if you're specifying UIE persistence in the iRule. It would be good to add a timeout on the persist add statement though. - Nat_Thirasuttakorn
Employee
you may also verify with "persist lookup" in irule and/or CLI command line "b persist show all" - Chris_13067
Nimbostratus
Thanks, - Nat_Thirasuttakorn
Employee
sorry I wrote it too fast. - Chris_13067
Nimbostratus
There is just one virtual server using the irule. - Nat_Thirasuttakorn
Employee
i think binary scan may take a little bit more cpu. but it may give you ability to debug (or you can use string to get data to variable, then use binary scan to convert it to hex. so you can log it to verify with packet trace. after irule is verified, you can remove the debugging part)
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