Home > Backend Development > PHP Tutorial > 基于PHP cookie会话保持之iRule脚本

基于PHP cookie会话保持之iRule脚本

WBOY
Release: 2016-06-23 13:36:57
Original
1280 people have browsed it

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"]

}

}


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template