Forum Discussion
Persistence Profile Issues
Couldn't try it on the lab but it must work.
You can also check the logs for trouble shooting
when HTTP_REQUEST {
set SessionId [HTTP::cookie ASP.NET_SessionId]
log local0. "[IP::client_addr]:[TCP::client_port]: Request SessionId is: $SessionId"
if { $SessionId != "" } { persist uie $SessionId 28800 }
pool po-server-https
}
when HTTP_RESPONSE {
set SessionId [findstr [HTTP::cookie "ASP.NET_SessionId"] 18 24]
log local0. "[IP::client_addr]:[TCP::client_port]: Response SessionId is: $SessionId from Set-Cookies: [HTTP::header values Set-Cookie]"
if { $SessionId != "" }{
persist add uie $SessionId 28800
log local0. "[IP::client_addr]:[TCP::client_port]: Persist record [persist lookup uie $SessionId]"
}
}
- D_TJun 24, 2020Cirrus
Hmmm that seems to result in:
01070151:3: Rule [/application/ir_server_uie_persistence_v2] error: /application/ir_server_uie_persistence_v2:17: error: ["invalid 'local0.'; expected:-noname"][log local0. "[IP::client_addr]:[TCP::client_port]: "Response SessionId is: $SessionId from Set-Cookies: [HTTP::header values Set-Cookie]"]
- crodriguezJun 24, 2020Ret. Employee
On the first log statement in the HTTP_RESPONSE event, remove the double quite that appears before the words "Response SessionID..." It should read:
log local0. "[IP::client_addr]:[TCP::client_port]: Response SessionId is: $SessionId from Set-Cookies: [HTTP::header values Set-Cookie]"
- msenturkJun 25, 2020Altocumulus
nice catch. I fixed it.
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