How is http://supportdetails.com开发者_如何学Python detecting if cookies are enabled or disabled without a server side redirect?
Using Firefox and the Developer plug I've disabled Javascript and toggled Cookies on and off. It correctly detects without, as far as I can tell, a server side redirect. How are they doing this?
Hi You can try the following code:
<script>
function myFunction() {
var x = "Are cookies enabled?: " + navigator.cookieEnabled;
return x;
}
</script>
精彩评论