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 iRule? Apologies if this has already been written in the forum somewhere.
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’:
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.
That’s a good start. If you used two pages you could have one set the cookie and then other allow access if the client presents the cookie(s) or send a redirect/HTTP response for clients who don’t have a cookie. And by “pages” it could just be two different HTML responses sent from the iRule.