Forum Discussion
Stanislas_Piro2
Apr 27, 2017Cumulonimbus
Hi,
the ACCESS_ACL_ALLOWED is the best event to insert APM headers.
when ACCESS_ACL_ALLOWED {
if {![info exists APMusername]} {
set APMusername [ACCESS::session data get session.logon.last.username]
}
if {![info exists APMdomain]} {
set APMdomain [ACCESS::session data get session.custom.domain]
}
HTTP::header insert USER $APMusername
HTTP::header insert DOMAIN $APMdomain
}
Store these values in tcl variables for next requests,
ACCESS::session
commands temporarily suspend iRule processing and may be used only if required.