Enforcing individual APM Policy "In Progress Sessions Limits"
Updated Jun 06, 2023
Version 2.0Was this article helpful?
Hi,
this is an interesting irule.
For better user experience, I should have set an APM session variable in ACCESS_SESSION_STARTED
ACCESS::session data set "session.custom.tomanysession" 1
instead of
ACCESS::respond 200 content "To many concurrent logon sessions from your IP address" noserver "Content-Type" "text/html"
ACCESS::session remove
and added a empty box in VPE with branch with expression
expr { [mcget {session.custom.tomanysession}] != 0 }
to dedicated policy ending with message:
To many concurrent logon sessions from your IP address
with this solution, the response page format is the same as access profile.