Forum Discussion
nitass
Nov 23, 2011Employee
can you try this? anyway, sorry i have not yet tested it.
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
set SessionId [HTTP::cookie ASP.NET_SessionId]
log local0. "Request SessionId is: $SessionId"
if {$SessionId != ""} {persist uie $SessionId}
}
when HTTP_RESPONSE {
foreach acookie [HTTP::header values "Set-Cookie"] {
set SessionId [findstr $acookie "ASP.NET_SessionId" 18 24]
log local0. "Response SessionId is: $SessionId"
if {$SessionId != ""}{persist add uie $SessionId}
}
}
}