Do you need to put the header in there on every request just certain ones?
The
ACCESS_POLICY_AGENT_EVENT
event is used during login to APM when you have put an iRule event object in the flow through the VPE. If you're trying to put the header in every time a request is made, you'd do something like this
This would be for all requests
when HTTP_REQUEST {
This will check to make sure the user has successfully logged in
if {[ACCESS::policy equals "allow"]} {
HTTP::header insert "case" [ACCESS::session data get "session.logon.last.username"]
log local0. "case mumber is [ACCESS::session data get "session.logon.last.username"]"
pool Pool_test
}
}