Maybe something like this?
when HTTP_REQUEST {
Check for /install/ or /scripts/ in the path
switch -glob [HTTP::path] {
"*/install/*" {
Parse the URI "directory" after install. Look for /install/, skip 9 characters and match up to the next /.
set session_id [findstr [HTTP::path] /install/ 9 /]
}
"*/scripts/*" {
Parse the URI "directory" after scripts. Look for /scripts/, skip 9 characters and match up to the next /.
set session_id [findstr [HTTP::path] /scripts/ 9 /]
}
default {
set session_id ""
}
}
if {$session_id ne ""}{
Persist on the parsed session ID for X seconds
persist uie $session_id 1800
}
}
Aaron