我有语言的cookie.我想检查是否设置了此cookie并检查其值以将用户重定向到特定页面. cookie名称为Lang,其值可能为En,Fr或Ar if (req.http.Cookie ~ "Lang"){//now i want to check for the cookie value//if LANG==
cookie名称为Lang,其值可能为En,Fr或Ar
if (req.http.Cookie ~ "Lang"){ //now i want to check for the cookie value //if LANG=="Ar" // set req.url = req.url "CookieValue" }
有谁知道如何检查清漆中的cookie值?
谢谢
if (req.http.Cookie ~ "Lang=En") { // do something with the English cookie } if (req.http.Cookie ~ "Lang=FR") { // do something with the French cookie }