Forum Discussion
Chris_Schaerli_
Nimbostratus
Jun 18, 2007Tracking session in soap header?
I have been going though the board looking for something to help me with a session persistence issue. I have some transactions I need to set persistence on and I can’t use source IP or cookie. The o...
Deb_Allen_18
Jun 20, 2007Historic F5 Account
(didn't see your other post)
This thread has response event logic similar to what you'd need to add to the request bit we've already worked out.
http://devcentral.f5.com/Default.aspx?tabid=53&view=topic&forumid=5&postid=13876 (Click here
So something like this, replacing/adjusting the findstr command in HTTP_RESPONSE to match your situation:
when HTTP_REQUEST {
collect the payload containing the POST data
HTTP::collect [HTTP::header Content-Length]
}
when HTTP_REQUEST_DATA {
persist on data from 59th character following 'xmlns:soapenc=' up to "<"
follow existing persistence record or create a new one
persist uie [findstr [HTTP::payload] xmlns:soapenc= 58 <]
log local0. "Request SessionID is: >[findstr [HTTP::payload] xmlns:soapenc= 58 <]<"
}
when HTTP_RESPONSE {
set SessionId [findstr [HTTP::header SOAPheader] "xmlns:soapenc=" 58 <]
log local0. "Response SessionId is: >$SessionId<"
if { $SessionId != "" }{ persist add uie $SessionId }
}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
