Forum Discussion
NoamRotter_1534
Nimbostratus
Jan 15, 2017Calling access profile from VPE
I have a general access profile with default settings that assigns pools based on URI in the VPE:
/uri1 = app1
/uri2 = app2
Now, I want that /uri3 will have a different access pr...
Stanislas_Piro2
Cumulonimbus
Jan 16, 2017Hi,
you can use this irule.
when ACCESS_POLICY_COMPLETED {
if {([ACCESS::policy result] equals "allow") && [set maxSession [ ACCESS::session data get session.custom.maxSession ]] } {
set apm_uuid "[PROFILE::access name].[ACCESS::session data get session.logon.last.username]"
set apm_cookie_list [ ACCESS::uuid getsid $apm_uuid ]
if {[llength $apm_cookie_list] > $maxSession} {
set apm_oldestid [ lindex $apm_cookie_list 0 ]
ACCESS::session remove -sid $apm_oldestid
}
}
}
The max session value must be set in variable
session.custom.maxSession
the irule will have the same behavior as the default option, remove the oldest session with same uuid (username authenticated on the current profile)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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