Cri
Dec 01, 2014Nimbostratus
APM: Insert a cookie on a HTTP Response inside apm flow
Hi all,
this is the situation: I'm performing a simple authentication on an Oracle LDAP by APM, in case of password expiration I configured an endig that redirect on an external change password page. I need to send to this page, and so to the user, a cookie (or a header, it doesn't matter) with the user name of the user that made login. I've tried with an iRule on HTTP Response event but it doesn't seems to be triggered when the ending of the apm flow is a redirect.
This is the simple iRule that I used:
when HTTP_RESPONSE {
log local0. "Inserisco il cookie con il nome utente"
HTTP::cookie insert name "user" value "Pippo"
}
I can't see log on ltm, so I imagined that in case of redirect I don't exit from APM, so I tried to insert an iRule on ACCESS_POLICY_AGENT_EVENT:
when ACCESS_POLICY_AGENT_EVENT {
HTTP::cookie insert name "user" value "pippo"
log local0. "INSERTUSER: Sto inserendo il cookie"
}
But still nothing.... Can you help me?
Cristian