Nicolas_Menant
Mar 31, 2008Employee
Session command and any virtual ...
Hi,
i faced an issue when trying to share session data between VS:
here was my code:
when HTTP_REQUEST {
if {[session lookup uie {[IP::client_addr] any virtual}] eq ""} {
log local0. "no session data found"
session add uie {[IP::client_addr] any virtual} "1" 1800
} else {
log local0. "session data found "
}
}
Then if i look at my persistence record i can see that my persistence value is [IP::client_addr] -_-'
I did several manipulation and saw that by doing it through a variable it would work and without the {}
when HTTP_REQUEST {
set line "[IP::client_addr] any virtual"
if {[session lookup uie $line] eq ""} {
log local0. "no session data found"
session add uie $line "1" 1800
} else {
log local0. "session data found "
}
}
Is it some kind of issue ?
Thanks for your help!
I saw this behavior in v9.4.3 and v9.4.4