I have an application that needs to check whether the client browser has third-party-cookies enabled. Does anyone know how to do this in JavaScript?
My solution works by loading a
If you prefer to run it asynchronously, you may use the async and defer attributes.
This also works with jQuery:
Here is the third-party-cookies.php code. This must be hosted on a different domain. The server must support PHP: