Forum Discussion
K4keyur_155272
Nimbostratus
May 19, 2017variable from HTTP_REQUEST to ACCESS_POLICY_AGENT_EVENT
Hi,
I am trying grab username which is part of URI::Query(when HTTP_REQUEST) and trying to assign it to session.logon.last.username (when ACCESS_POLICY_AGENT_EVENT)
Is it possible to take a...
Stanislas_Piro2
Cumulonimbus
May 19, 2017Hi,
you can use
ACCESS_SESSION_STARTED
instead of ACCESS_POLICY_AGENT_EVENT
and HTTP_REQUEST
when ACCESS_SESSION_STARTED {
if { [HTTP::uri] contains "username="}
{
set uri [URI::decode [URI::query [HTTP::uri]]]
set urisplit [split $uri "&"]
set uname [lindex $urisplit 2]
log local0. $uname
ACCESS::session data set session.temp.username $uname
}
}
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