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 clos...
Nat_Thirasuttakorn
Employee
Oct 30, 2008I think the concept is same as jsessionid persistent.
detect information from server response and add it to persistent table.
http://devcentral.f5.com/wiki/default.aspx/iRules/Weblogic_JSessionID_Persistence.html
however, jsessionid case would be easier since it is http protocol and information is in cookie.
in your case, if it is generic tcp, you may have to use irule based on TCP event, etc.
something like this
on the initial connection:
when SERVER_ACCEPTED {
TCP::collect
}
when SERVER_DATA {
let say it is at byte 20
persist add uie [string range [TCP::payload] 20 51]
}
and for the subsequent requests
when CLIENT_ACCECPTED {
TCP::collect
}
when CLIENT_DATA {
let say session id is at byte 100
persist uie [string range [TCP::payload] 100 131]
}
if you can share packet trace of your application, that would help
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
