基于PHP cookie会话保持之iRule脚本
更新:HHH   时间:2023-1-7


when HTTP_REQUEST {

if { [HTTP::cookie exists "TestCookie"] } {

#test cookie是WEB里面定义的

persist uie [HTTP::cookie "TestCookie"]

}

}

when HTTP_RESPONSE {

if { [HTTP::cookie exists "TestCookie"] } {

persist add uie [HTTP::cookie "TestCookie"]

}

}


返回web开发教程...