Forum Discussion
Stanislas_Piro2
Apr 21, 2016Cumulonimbus
The following irule allow you to redirect to home page and insert username as HTTP Header:
when ACCESS_ACL_ALLOWED {
if { [HTTP::uri] eq "/" } {
ACCESS::respond 302 noserver Location "/homepage/"
return
} elseif {![info exists APMusername]} {
set APMusername [ACCESS::session data get session.logon.last.username]
}
HTTP::header insert "USER" APMusername
}