当HTTP请求时{ 如果{ [HTTP::cookie exists "JSESSIONID"] } { 持久化 uie [HTTP::cookie "JSESSIONID"] } else { 设置 jsess [findstr [HTTP::uri] "JSESSIONID" 11 ";"] 如果{ $jsess != "" } { 持久化 uie $jsess } } }

当HTTP响应时{ 如果{ [HTTP::cookie exists "JSESSIONID"] } { 持久化添加 uie [HTTP::cookie "JSESSIONID"] } }

翻译以下irule:when HTTP_REQUEST if HTTPcookie exists JSESSIONID persist uie HTTPcookie JSESSIONID else set jsess findstr HTTPuri JSESSIONID 11 ; if $jsess != persist uie $jsess