Forum Discussion
navgup_66025
Nimbostratus
Jul 22, 2013Env variable or session variable
declare global var =0
when HTTP_REQUEST {
if var = 0 {
if { [HTTP::header value Authorization] contains "Negotiate YII" } {
var = 1
pool Kerberos_Pool
} else {
v...
Kevin_Stewart
Employee
Jul 22, 2013Unfortunately, global variables are actually global to the box. In your case I'd try setting the initial "var" variable in the CLIENT_ACCEPTED event. Local variables essentially last for the span of a TCP session, so setting it here makes it available to all other events within that TCP session.
Alternatively, if you need the value to span multiple TCP sessions, you may need to explore setting the value in the session table.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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