Forum Discussion
Bryan_Thibodeau
Nimbostratus
Apr 10, 2017Character not legal in expression?
Hello Everyone,
Thanks in advance for the help! I'm trying to use an iRule in my AP to check current sessions in progress for members of a certainn LDAP group, and then check a custom max-concur...
Bryan_Thibodeau
Nimbostratus
Apr 10, 2017iRule in question:
when CLIENT_ACCEPTED { ACCESS::restrict_irule_events disable } when ACCESS_POLICY_COMPLETED { set max_sessions 3 set apm_username [ACCESS::session data get session.logon.last.username] set apm_cookie_list [ ACCESS::uuid getsid "[PROFILE::access name].$apm_username" ] log local0. "[PROFILE::access name].$apm_username => session number [llength $apm_cookie_list]" if {[ACCESS::policy result] equals 'allow' [llength $apm_cookie_list] >= $max_sessions} { ACCESS::session remove ACCESS::respond 302 location "/vdesk/hangup.php3" } }
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