开发者

Programmatically Detecting Browser Cookies Enable/Disabled without Redirect or Javascript?

开发者 https://www.devze.com 2022-12-25 11:38 出处:网络
How is http://supportdetails.com开发者_如何学Python detecting if cookies are enabled or disabled without a server side redirect?

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消