Forum Discussion
session soap irule persistency
session soap irule persistency
4 Replies
- What_Lies_Bene1
Cirrostratus
Care to elaborate?
- Adrian_Pillo_18
Nimbostratus
I tried this:
when HTTP_REQUEST { HTTP::collect [HTTP::header Content-Length] } when HTTP_REQUEST_DATA { set my_uri [HTTP::uri] set my_sessionId [findstr[HTTP::payload] "sessionId=" 1 ","] log local0. "found request sessionID: $my_sessionId in SOAP call: $my_uri" if { $my_sessionId != "" } { persist uie $my_sessionId } } when HTTP_RESPONSE { set my_sessionId [findstr[HTTP::payload] "sessionId=" 1 ","] log local0. "found response sessionID: $my_sessionId in SOAP response from: [LB::server addr]" if { $my_sessionId != "" } { persist add uie $my_sessionId } }
- Adrian_Pillo_18
Nimbostratus
This seems to work fine:
when HTTP_REQUEST { HTTP::collect [HTTP::header Content-Length] } when HTTP_REQUEST_DATA { set my_uri [HTTP::uri] set my_sessionId [findstr [HTTP::payload] essionId> 9 9
- Kevin_Stewart
Employee
Two things:
-
Do you see it logging the sessionID values in the request?
-
Do you have this iRule applied to a universal persistence profile (not the VIP)?
Also, minor typo in findstr command:
when HTTP_REQUEST { HTTP::collect [HTTP::header Content-Length] } when HTTP_REQUEST_DATA { set my_uri [HTTP::uri] set my_sessionId [findstr [HTTP::payload] "sessionId=" 10 ","] log local0. "found request sessionID: $my_sessionId in SOAP call: $my_uri" if { $my_sessionId != "" } { persist uie $my_sessionId } } when HTTP_RESPONSE { set my_sessionId [findstr[HTTP::payload] "sessionId=" 10 ","] log local0. "found response sessionID: $my_sessionId in SOAP response from: [LB::server addr]" if { $my_sessionId != "" } { persist add uie $my_sessionId } } -
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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