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...
hoolio
Cirrostratus
Dec 04, 2009Hi Sam,
If you can figure out how you want to test whether clients support session and/or persistent cookies you could probably use an iRule which sends the HTML and parses the subsequent requests. Here are a few examples found searching for 'check browser cookies enabled':
http://techpatterns.com/downloads/javascript_check_cookies.php
http://www.html-kit.com/tools/cookietester/
http://www.velocityreviews.com/forums/t73185-detect-if-cookies-are-enabled.html
The way this is done on Microsoft Office Online is that we have a page which
tries to set a session cookie and a permanent cookie; this page then
redirects to a page which tests for those cookies. If they're not both
present, that page then redirects to a "you need to enable cookies" error
page.
You can send the HTTP response using HTTP::respond and check for cookies in the request using HTTP::cookie exists.
Aaron
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
