cmautner_16848
Apr 09, 2008Nimbostratus
Quick question concerning active sessions
I'm looking for code which will determine if all servers are disabled AND no active sessions are in place. I know the active_members command is working properly. I'm having trouble finding an active sessions command.
My goal is to have new attempts to connect redirected to a maintenance page, but active sessions remain active until they disconnect. Any help is appreciated!
when HTTP_REQUEST {
if {[active_members MYPOOL] == 0 && ????[active_connections/sessions] == 0} {
HTTP::redirect "http://www.google.com"
}
}