Forum Discussion
Sam_Parkes_1110
Nimbostratus
Dec 04, 2009check if browser's cookies are enabled
Hi I've been looking through the forums, but cant find a way of using the F5 to check if a browser's cookies are enabled before continuing to serve requests to it? Is there a way of doing this with an...
Sam_Parkes_1110
Nimbostratus
Dec 04, 2009Thanks Aaron,
I've got something working for now:
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/landingPage.form") and [HTTP::cookie exists "cookies"] } {
return
}
elseif { [HTTP::uri] starts_with "/landingPage.form" } {
HTTP::respond 301 Location "http://my.domain.com/landingPage.form" Set-Cookie cookies=true
}
}
This is working for now, our developers are working on a permanent solution based on a 2-stage redirect like you suggested, the only problem with this is the looping done if a browser disables cookies, but at least it protects our application layer.
Thanks again.
Sam.
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
