Forum Discussion
greg_chew_11034
Nimbostratus
Sep 01, 2005http::redirect and http::close and not closing the session.
Hey all.
I am trying to do a redirect to www.foo.com/test.
HTTP/1.0 302 Found
Location: http://www.foo.com/browse/home.html
Server: BIG-IP
Connection: Keep-Alive
...
unRuleY_95363
Sep 01, 2005Historic F5 Account
Also, I really don't think you should need to do the "event disable all" since this connection should really be closing. If for some reason, the connection is not being closed, no rule events will be triggered. Instead of doing an "event disable all", maybe you should do something like set a variable that says you are done. Something like this:
when CLIENT_ACCEPTED {
set http_closed 0
}
when HTTP_REQUEST {
if { $http_closed } {
log "Hey, this connection should be closed!"
reject
}
...
if { ... } {
HTTP::redirect http://www.foo.bar.com/newuri
set http_closed 1
}
}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
