Forum Discussion
Eric_Waite_1046
Jan 08, 2007Nimbostratus
findstr
What does the following mean exactly?
set jsess [findstr [HTTP::uri] "jsessionid" 11 "?"]
What would it set the jsess variable in the following request?
http://users.read...
Eric_Waite_1046
Jan 08, 2007Nimbostratus
I am now using the following and the persistenc edoes not allways hold, its almost as if the table is removing the entry on BIG_IP.
BTW could the "?" be throwing it off, I want to parse up until there is a ? in the URL. To handle passed in request vars.
Why do you use "!" in your parsing of jsessionid?
- Eric
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JID"] } {
set resPers [HTTP::cookie "JID"]
if { [persist lookup uie $resPers] equals "" } {
session add uie $resPers [IP::server_addr] 3700
}
}
}
when HTTP_REQUEST {
set jsess [findstr [HTTP::uri] "jsessionid" 11 "?"]
if { $jsess != "" } {
pool test_pool member [session lookup uie [findstr [HTTP::uri] "jsessionid" 11 "?"] ]
} else {
pool test_pool
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects